Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "devopstools", Short: "Scripts to drive Vega Networks", Long: `Manage internal Vega Networks`, PersistentPreRun: func(cmd *cobra.Command, args []string) { var err error cfg := zap.NewProductionConfig() if Args.Debug { cfg.Level.SetLevel(zap.DebugLevel) } cfg.OutputPaths = []string{"stdout"} cfg.Encoding = "console" cfg.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder Args.Logger, err = cfg.Build() if err != nil { fmt.Fprintf(os.Stderr, "Failed to setup logger: %s\n", err) os.Exit(1) } }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.