Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description `sui client` only allows interactive initialization of the local configs (in `~/.sui`). This makes it possible to use the client in automation via a `-y` flag to accept the defaults of using devnet as the network and generating a new ed25519 key. ## Test Plan `cargo nextest run` succeeds for all but one or two few flaky tests: ``` » c nextest run --no-fail-fast ... Summary [ 246.873s] 898 tests run: 898 passed (4 slow), 9 skipped ``` Works with a new env (after `rm -rf ~/.sui`): ``` » sui client -y Creating config file ["/Users/jordankylejensen/.sui/sui_config/client.yaml"] with default (devnet) full node server and ed25519 key scheme.Generated new keypair for address with scheme "ed25519" [0xadb80fbfea1e98869f939f83bbc24f343e657745] Secret Recovery Phrase : [patient slot rely silly alone squeeze juice term tilt bundle fiscal visual volume kangaroo plate voice rookie grocery opinion brown recipe hover rebel define] ``` Help output is informative: ``` » sui client --help sui-client Client for interacting with the Sui network USAGE: sui client [OPTIONS] [SUBCOMMAND] OPTIONS: --client.config <CONFIG> Sets the file storing the state of our user accounts (an empty one will be created if missing) -h, --help Print help information --json Return command outputs in json format -y, --yes Accept the default config for setting up a new client, using devnet as the network and generating new key(s) using the ed25519 scheme ``` --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [X] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes - Add `-y` flag for accepting client defaults when initializing a new local configuration.
- Loading branch information