Expand description
Helpers for creating CLIs with serializable JSON output.
This package is largely based on code from Aptos CLI.
Traits§
- CliTool
- A common trait for all CLI commands to have consistent outputs
Functions§
- to_
common_ result - For pretty printing outputs in JSON
- to_
common_ success_ result - Convert any successful response to Success
Type Aliases§
- CliResult
- A common result to be returned to users
- CliTyped
Result - A common result to remove need for typing
Result<T, CliError>