Skip to content

Commit

Permalink
ledger-tool: Move blockstore commands to blockstore subcommand (solan…
Browse files Browse the repository at this point in the history
…a-labs#34597)

solana-ledger-tool is a bit of a kitchen sink and currently has
upwards of 30 commands at the top level of the CLI. UI aside, the
contents of ledger-tool/src/main.rs are somewhat cluttered.

To reduce clutter and introduce a more hierarchical structure, this
change introduces a new blockstore subcommand and moves all commands
that only touch the blockstore to a blockstore subcommand. For example,
  solana-ledger-tool slot X 
is now invoked like
  solana-ledger-tool blockstore slot X

However, given how long the tool has existed, support is retained for
calling these old commands without the extra blockstore command. But,
the commands are not listed in the help in order to steer new users to
use the newer calling structure.
  • Loading branch information
steviez authored Jan 10, 2024
1 parent 5cb30cf commit 7ee9d9a
Show file tree
Hide file tree
Showing 2 changed files with 1,159 additions and 1,093 deletions.
Loading

0 comments on commit 7ee9d9a

Please sign in to comment.