CLI defines a command line interpreter
type CLI struct {
// contains filtered or unexported fields
}
func NewCLI(name, help string) *CLI
NewCLI creates a new CLI with the given name and help message
func (cli *CLI) Command(name, help string, onCommand CLICommand) *kingpin.CmdClause
Command adds a new top-level command to the CLI
func (cli *CLI) Run(args []string)
Run makes the CLI process the arguments and executes the command(s) with the flag(s)
CLICommand defines a command that is added to the CLI via an external consumer.
type CLICommand func(Config) error
Config aggregates configuration of TLS and signing
type Config struct { Version int TLSConfig comm.Config SignerConfig signer.Config }
func ConfigFromFile(file string) (Config, error)
ConfigFromFile loads the given file and converts it to a Config
func (c Config) ToFile(file string) error
ToFile writes the config into a file