cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     "openserp",
	Short:   "Open SERP",
	Long:    `Search via Google, Yandex and Baidu`,
	Version: version,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		core.InitLogger(appConf.IsVerbose, appConf.IsDebug)
		err := initializeConfig(cmd)
		logrus.Debugf("Config: %+v", appConf)
		return err
	},
}

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Host          string
	Port          int
	Timeout       int
	ConfigPath    string
	IsBrowserHead bool `mapstructure:"head"`
	IsLeaveHead   bool `mapstructure:"leave_head"`
	IsLeakless    bool `mapstructure:"leakless"`
	IsDebug       bool `mapstructure:"debug"`
	IsVerbose     bool `mapstructure:"verbose"`
	IsRawRequests bool `mapstructure:"raw_requests"`
}

Jump to

Keyboard shortcuts

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