{"modulePath":"github.com/runcom/cli-1","version":"v0.0.0-20170523011641-28eb46de5641","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package flags\n\n## Constants\n\n```go\nconst (\n\t// DefaultCaFile is the default filename for the CA pem file\n\tDefaultCaFile = \"ca.pem\"\n\t// DefaultKeyFile is the default filename for the key pem file\n\tDefaultKeyFile = \"key.pem\"\n\t// DefaultCertFile is the default filename for the cert pem file\n\tDefaultCertFile = \"cert.pem\"\n\t// FlagTLSVerify is the flag name for the TLS verification option\n\tFlagTLSVerify = \"tlsverify\"\n)\n```\n\n## Functions\n\n```go\nfunc SetLogLevel(logLevel string)\n```\nSetLogLevel sets the logrus logging level\n\n## Types\n\n```go\ntype ClientOptions struct {\n\tCommon    *CommonOptions\n\tConfigDir string\n\tVersion   bool\n}\n```\nClientOptions are the options used to configure the client cli\n\n```go\nfunc NewClientOptions() *ClientOptions\n```\nNewClientOptions returns a new ClientOptions\n\n```go\ntype CommonOptions struct {\n\tDebug      bool\n\tHosts      []string\n\tLogLevel   string\n\tTLS        bool\n\tTLSVerify  bool\n\tTLSOptions *tlsconfig.Options\n}\n```\nCommonOptions are options common to both the client and the daemon.\n\n```go\nfunc NewCommonOptions() *CommonOptions\n```\nNewCommonOptions returns a new CommonOptions\n\n```go\nfunc (commonOpts *CommonOptions) InstallFlags(flags *pflag.FlagSet)\n```\nInstallFlags adds flags for the common options on the FlagSet\n\n```go\nfunc (commonOpts *CommonOptions) SetDefaultOptions(flags *pflag.FlagSet)\n```\nSetDefaultOptions sets default values for options after flag parsing is complete\n\n","path":"github.com/runcom/cli-1/cli/flags","name":"flags","synopsis":"","isRedistributable":true}
