Documentation ¶
Overview ¶
Modified
Copyright © 2019 victor23d <victor6742x@gmail.com> This file is part of {{ .appName }}.
Modifications ¶
Copyright © 2019 victor23d <victor6742x@gmail.com> This file is part of {{ .appName }}.
Modifications
Index ¶
Constants ¶
View Source
const ( // http://tldp.org/LDP/abs/html/exitcodes.html ExitSuccess = iota ExitError ExitBadConnection ExitInvalidInput // for txn, watch command ExitBadFeature // provided a valid flag with an unsupported value ExitInterrupted ExitIO ExitBadArgs = 128 )
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ExitWithError ¶
Types ¶
type GlobalFlags ¶
type GlobalFlags struct { Insecure bool InsecureSkipVerify bool InsecureDiscovery bool Endpoints []string DialTimeout time.Duration CommandTimeOut time.Duration KeepAliveTime time.Duration KeepAliveTimeout time.Duration DNSClusterServiceName string TLS transport.TLSInfo OutputFormat string IsHex bool User string Password string Debug bool }
GlobalFlags are flags that defined globally and are inherited to all sub-commands.
Click to show internal directories.
Click to hide internal directories.