Skip to content
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

Help tweaks #1474

Merged
merged 6 commits into from
Jul 23, 2024
Merged

Help tweaks #1474

merged 6 commits into from
Jul 23, 2024

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jul 22, 2024

What

A few small changes to the main help. Reworded the lead in sentence making it a stronger statement that stands alone. Updated the list of core features. Reorganized the subcommands to place primary domain functionality at the top and more utilities and advanced capabilities lower. Removed the TESTING_OPTIONS flag group because the help is for users, not for CLI developers.

Before

$ stellar -h
With the Stellar CLI you can:

- build, deploy and interact with contracts
- set identities to sign with
- configure networks
- generate keys
- more!

For additional information see:

- Stellar Docs: https://developers.stellar.org
- Smart Contract Docs: https://developers.stellar.org/docs/build/smart-contracts/overview
- CLI Docs: https://developers.stellar.org/docs/tools/stellar-cli

Usage: stellar [OPTIONS] <COMMAND>

Commands:
  completion  Print shell completion code for the specified shell
  contract    Tools for smart contract developers
  events      Watch the network for contract events
  keys        Create and manage identities including keys and addresses
  xdr         Decode and encode XDR
  network     Start and configure networks
  version     Print version information
  tx          Sign, Simulate, and Send transactions
  cache       Cache for transactions and contract specs

Options:
      --global                     Use global config
  -f, --filter-logs <FILTER_LOGS>  Filter logs output. To turn on `stellar_cli::log::footprint=debug` or off `=off`. Can also use env var `RUST_LOG`
  -q, --quiet                      Do not write logs to stderr including `INFO`
  -v, --verbose                    Log DEBUG events
      --very-verbose               Log DEBUG and TRACE events [aliases: vv]
      --list                       List installed plugins. E.g. `stellar-hello`
      --no-cache                   Do not cache your simulations and transactions [env: STELLAR_NO_CACHE=]
  -h, --help                       Print help (see more with '--help')
  -V, --version                    Print version

TESTING_OPTIONS:
      --config-dir <CONFIG_DIR>  Location of config directory, default is "."

After

$ stellar -h
Work seamlessly with Stellar accounts, contracts, and assets from the command line.

- Generate and manage keys and accounts
- Build, deploy, and interact with contracts
- Deploy asset contracts
- Stream events
- Start local testnets
- Decode, encode XDR
- More!

For additional information see:

- Stellar Docs: https://developers.stellar.org
- Smart Contract Docs: https://developers.stellar.org/docs/build/smart-contracts/overview
- CLI Docs: https://developers.stellar.org/docs/tools/stellar-cli

Usage: stellar [OPTIONS] <COMMAND>

Commands:
  contract    Tools for smart contract developers
  events      Watch the network for contract events
  keys        Create and manage identities including keys and addresses
  network     Start and configure networks
  tx          Sign, Simulate, and Send transactions
  xdr         Decode and encode XDR
  completion  Print shell completion code for the specified shell
  cache       Cache for transactions and contract specs
  version     Print version information

Options:
      --global                     Use global config
      --config-dir <CONFIG_DIR>    Location of config directory, default is "."
  -f, --filter-logs <FILTER_LOGS>  Filter logs output. To turn on `stellar_cli::log::footprint=debug` or off `=off`. Can also use env var `RUST_LOG`
  -q, --quiet                      Do not write logs to stderr including `INFO`
  -v, --verbose                    Log DEBUG events
      --very-verbose               Log DEBUG and TRACE events [aliases: vv]
      --list                       List installed plugins. E.g. `stellar-hello`
      --no-cache                   Do not cache your simulations and transactions [env: STELLAR_NO_CACHE=]
  -h, --help                       Print help (see more with '--help')
  -V, --version                    Print version

Diff

@@ -1,10 +1,12 @@
-With the Stellar CLI you can:
+Work seamlessly with Stellar accounts, contracts, and assets from the command line.
 
-- build, deploy and interact with contracts
-- set identities to sign with
-- configure networks
-- generate keys
-- more!
+- Generate and manage keys and accounts
+- Build, deploy, and interact with contracts
+- Deploy asset contracts
+- Stream events
+- Start local testnets
+- Decode, encode XDR
+- More!
 
 For additional information see:
 
@@ -15,18 +17,19 @@ For additional information see:
 Usage: stellar [OPTIONS] <COMMAND>
 
 Commands:
-  completion  Print shell completion code for the specified shell
   contract    Tools for smart contract developers
   events      Watch the network for contract events
   keys        Create and manage identities including keys and addresses
-  xdr         Decode and encode XDR
   network     Start and configure networks
-  version     Print version information
   tx          Sign, Simulate, and Send transactions
+  xdr         Decode and encode XDR
+  completion  Print shell completion code for the specified shell
   cache       Cache for transactions and contract specs
+  version     Print version information
 
 Options:
       --global                     Use global config
+      --config-dir <CONFIG_DIR>    Location of config directory, default is "."
   -f, --filter-logs <FILTER_LOGS>  Filter logs output. To turn on `stellar_cli::log::footprint=debug` or off `=off`. Can also use env var `RUST_LOG`
   -q, --quiet                      Do not write logs to stderr including `INFO`
   -v, --verbose                    Log DEBUG events
@@ -35,6 +38,3 @@ Options:
       --no-cache                   Do not cache your simulations and transactions [env: STELLAR_NO_CACHE=]
   -h, --help                       Print help (see more with '--help')
   -V, --version                    Print version
-
-TESTING_OPTIONS:
-      --config-dir <CONFIG_DIR>  Location of config directory, default is "."

Why

To communicate the purpose of the CLI clearer in the help, and to make the "above the fold" things the main features of the CLI.

@leighmcculloch leighmcculloch marked this pull request as ready for review July 22, 2024 13:49
@leighmcculloch leighmcculloch enabled auto-merge (squash) July 22, 2024 13:49
@leighmcculloch leighmcculloch merged commit 13ed0f2 into main Jul 23, 2024
24 checks passed
@leighmcculloch leighmcculloch deleted the apterygote-wickedish branch July 23, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants