Skip to content

CLI commands restructure

Mateusz Żebrak requested to merge mzebrak/commands-restructure into develop

Based on: this mermaid reference graph we now have: this structure

Work done in this MR:

  • Commands were restructured based on the suggested structure diagram
  • Removed the beekeeper keys auto-sync feature (also from TUI)
  • Make it possible to save transactions from CLI as JSON also (by determining the extension format) - previously CLI saved always as binary.
  • Make operation-like CLI commands --sign property optional (and so on --password), so now signed/unsigned transaction could be saved - previously using the --save-file always resulted in a signed transaction.
  • No arg means print help for subcommands now
  • [internal] Changed the way we group common options - dropped separate decorators in favor of overriding command and callback provided by Typer.
    • dropped merge_args dependency
    • common options are no more always treated like str ones
    • possible to specify multiple common options instances per one command
    • less boilerplate
Edited by Mateusz Żebrak

Merge request reports