cli

package
v0.6.1-0...-4943b3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: MIT Imports: 11 Imported by: 0

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

func Execute

func Execute()

Execute runs the command line interface to the client

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL