Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootCmd is the root command of the command line interface RootCmd = &cobra.Command{ Use: "gva", Short: "Unofficial command line interface to the Gun Violence Archive", Long: "This program is unaffiliated with the Gun Violence Archive", PersistentPreRun: func(cmd *cobra.Command, args []string) { config := zap.NewProductionConfig() config.Encoding = "console" if verbose { config.Level = zap.NewAtomicLevelAt(zapcore.DebugLevel) } else { config.Level = zap.NewAtomicLevelAt(zapcore.WarnLevel) } l, _ := config.Build() log = l.Sugar() }, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.