{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\n## Types\n\n```go\ntype CLI struct {\n\t// contains filtered or unexported fields\n}\n```\nCLI defines a command line interpreter\n\n```go\nfunc NewCLI(name, help string) *CLI\n```\nNewCLI creates a new CLI with the given name and help message\n\n```go\nfunc (cli *CLI) Command(name, help string, onCommand CLICommand) *kingpin.CmdClause\n```\nCommand adds a new top-level command to the CLI\n\n```go\nfunc (cli *CLI) Run(args []string)\n```\nRun makes the CLI process the arguments and executes the command(s) with the flag(s)\n\n```go\ntype CLICommand func(Config) error\n```\nCLICommand defines a command that is added to the CLI via an external consumer.\n\n```go\ntype Config struct {\n\tVersion      int\n\tTLSConfig    comm.Config\n\tSignerConfig signer.Config\n}\n```\nConfig aggregates configuration of TLS and signing\n\n```go\nfunc ConfigFromFile(file string) (Config, error)\n```\nConfigFromFile loads the given file and converts it to a Config\n\n```go\nfunc (c Config) ToFile(file string) error\n```\nToFile writes the config into a file\n\n","path":"github.com/eric-erki/https-hyperledger.org/cmd/common","name":"common","synopsis":"","isRedistributable":true}
