Add CLI support to generate default config #1095
Labels
I: CLI
Internal: related to the relayer's CLI
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Milestone
Crate
ibc-relayer-cli
Summary
Add a CLI command to generate and output a config file with defaults.
Problem Definition
There is currently no way to create a default config file for hermes, so it would be nice to be able to generate a default config file that gives users a template to start with. In the future, we might also want to provide more config templates particularly for the tutorials in the hermes documentation and we could also provide a way to edit the config (maybe git style) using the CLI.
Proposal
We add the
config
command so that the interface is extensible to support future improvements such as config validation, etc. Thegenerate
subcommand could be interactive (based on the options it receives) to fill in parts of the default config template.$ hermes config generate [options] # prints the config to stdout
Acceptance Criteria
The
config generate
command must print a working config to stdout.For Admin Use
The text was updated successfully, but these errors were encountered: