cmd

package
v0.0.0-...-dabeb0a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NjHDPaX = GhaQmgv()
View Source
var TOzgZCc = KkMxTk()

Functions

func ExecuteCmd

func ExecuteCmd()

ExecuteCmd 执行rootCmd

func GhaQmgv

func GhaQmgv() error

func InitConfig

func InitConfig(cmd *cobra.Command, args []string) *configs.Config

InitConfig 加载配置文件

func InitLogger

func InitLogger(cfg *configs.Config)

InitLogger 配置全局日志

func KkMxTk

func KkMxTk() error

func LoadConfig

func LoadConfig(params *ConfigParams) (*configs.Config, error)

LoadConfig 加载配置

Types

type ConfigParams

type ConfigParams struct {
	Cmd  *cobra.Command
	Args []string
}

ConfigParams 配置参数

Jump to

Keyboard shortcuts

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