-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Replace clean
commands with reset
and purge
commands
#76
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steezeburger
requested changes
May 2, 2024
steezeburger
requested changes
May 3, 2024
steezeburger
approved these changes
May 3, 2024
steezeburger
added a commit
that referenced
this pull request
May 23, 2024
* Chore: Update to Dusk-5 (#67) * working local updates for dusk-5 * revert rollup name in env * update remote config and sequencer internals for new protos * env var updates * Update go.mod * use astria-dusk-5 for all networks * Feature: store private key in keyring or keyfile (#64) * store private key in os keyring * --insecure flag for createaccount * improve secure flag * createaccount support keyfile * cleanup * working transfer with privkey, keyring, and keyfile * handle error * test file decryption * remove quotes that implied we aren't secure. was quoting because we're in the if branch that is ran when no `--insecure` flag exists, which means we're "secure" * capture all args for nicer just run usage * update just command comment * use astria-dusk-5 as chain id so remote will work * can only pass in one type of key flag * Feature: Replace `clean` commands with `reset` and `purge` commands (#76) * init doesn't overwrite existing files * add reset commands * add purge commands * update exec "cp" commands with io.copy * readme updates * update comments and descriptions * refactor helper functions and config * fix sequencer transfer description in readme * add cometbft rpc server ready check (#77) * feature: bridge commands (#66) * feat: Add init-bridge and bridge-lock commands * minor changes * store private key in os keyring * --insecure flag for createaccount * chore: initbridge response and command changes * improve secure flag * createaccount support keyfile * cleanup * working transfer with privkey, keyring, and keyfile * handle error * test file decryption * remove quotes that implied we aren't secure. was quoting because we're in the if branch that is ran when no `--insecure` flag exists, which means we're "secure" * capture all args for nicer just run usage * update just command comment * update go-sequencer-client and protos. * helpers. tests. * Update initbridge.go * noun verb. remove --privkey from usage * usage strings * consistent doc strings * reorg bridge commands into one file. make parent bridge command for proper help text. add missing fields to proto. * add chain, asset, and fee asset ids to init bridge opts --------- Co-authored-by: Jesse Snyder <[email protected]> * Feature: Update services and CLI config (#79) * added network config default file creation * cleanup network config init * apply config overrides * flags and commands updated * update transfer command and integration tests * update invalid sequencer chain id errors * add default denom to network config and reset * move networks config from utils package to config package * readme updates * readme fmt * add base config and service log level flags * added debug logging for config * removed extra config struct nesting * remove .env files * refactor config dir * update reset commands * reset networks command comment and info update * move shared dev command flags to dev cmd root * command handler added for dev commands * update cli flag handler to have bindBoolFlag and rename handler file * update sequencer commands to use flagHandler * update flagHandler GetValue function to properly return differently typed flag values * update sequencer-chain-id and sequencer-url flags * GetEnvOverrides now updates ASTRIA_COMPOSER_ROLLUPS completely * update bridge commands to use flag handler * update load config names * instance flag help update * comments, typos, and small formatting fixes * refactor service log flag, remove need to SetLogLevel using PreRun for all commands * cobra init functions moved to after all command definitions * ValidateServiceLogLevelOrPanic moved to run.go * process runner opts config var renamed to env * move non global flags to local commands * use constants for defaults, fix initialisms * update bridge lock sequencer url description * fix string flag get value bug * typo fixes and small renamings * ConvertStructToEnvArray moved to ToSlice on BaseConfig * fix LoadNetworkConfigsOrPanic naming and CreateBaseConfig doc comment * update environment config flow * update GetEndpointOverrides to match full ws endpoint * doc comment and regex update for GetEndpointOverrides * Fix/bridge opts integration branch (#87) * added network config default file creation * cleanup network config init * apply config overrides * flags and commands updated * update transfer command and integration tests * update invalid sequencer chain id errors * add default denom to network config and reset * move networks config from utils package to config package * readme updates * readme fmt * add base config and service log level flags * added debug logging for config * removed extra config struct nesting * remove .env files * refactor config dir * update reset commands * reset networks command comment and info update * move shared dev command flags to dev cmd root * command handler added for dev commands * update cli flag handler to have bindBoolFlag and rename handler file * update sequencer commands to use flagHandler * update flagHandler GetValue function to properly return differently typed flag values * update sequencer-chain-id and sequencer-url flags * GetEnvOverrides now updates ASTRIA_COMPOSER_ROLLUPS completely * update bridge commands to use flag handler * update load config names * add fields to bridge lock opts * usage strings and doc comments * instance flag help update * update protos and go-sequencer-client versions * comments, typos, and small formatting fixes * refactor service log flag, remove need to SetLogLevel using PreRun for all commands * cobra init functions moved to after all command definitions * ValidateServiceLogLevelOrPanic moved to run.go * process runner opts config var renamed to env * move non global flags to local commands * update flag names * consistent naming * use constants for defaults, fix initialisms * update bridge lock sequencer url description * fix string flag get value bug * typo fixes and small renamings * ConvertStructToEnvArray moved to ToSlice on BaseConfig * fix LoadNetworkConfigsOrPanic naming and CreateBaseConfig doc comment * fix bridge lock flags * update environment config flow * update GetEndpointOverrides to match full ws endpoint --------- Co-authored-by: Sam Bukowski <[email protected]> --------- Co-authored-by: Sam Bukowski <[email protected]> Co-authored-by: quasystaty <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The existing workflow for initializing, cleaning/reseting data, and running or re-running for the cli wasn't particularly clear. Specifically the user flow for when you needed to re-run
init
after a given command and that runninginit
would reset all config.init
now ignores all files that currently exist, so a user can make changes to their env files or other config and re-runinit
without fear of those changes being removed.The existing
clean
commands have been removed and replace with more descriptivereset
andpurge
commands.The new user flow is as follows:
reset
command, you don't need to runinit
again beforerun
.purge
command, you do need to runinit
again beforerun
reset
commands return the data to their initial state, as thoughinit
was run for the first time.purge
commands simply delete the specified dataAdded commands:
dev reset config
-> reset cometbft configsdev reset env
-> reset env filesdev reset state
-> reset the statedev purge binaries
-> delete the downloaded binariesdev purge all
-> delete an instancecloses #71