exports

package
v0.0.0-...-1b8f325 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// rootCmd is the Viper root command
	RootCmd = &cobra.Command{
		Use: "export",
		PersistentPreRun: func(cmd *cobra.Command, args []string) {

			switch flags.loglevel {
			case "error":
				log.SetLevel(logrus.ErrorLevel)
			case "warn":
				log.SetLevel(logrus.WarnLevel)
			case "info":
				log.SetLevel(logrus.InfoLevel)
			case "debug":
				log.SetLevel(logrus.DebugLevel)
			case "trace":
				log.SetLevel(logrus.TraceLevel)
			default:
				log.SetLevel(logrus.InfoLevel)
			}
			setup()
		},
	}
)

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

Flags struct contains settings for the root command

type Services

type Services struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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