cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigFile string
)

Functions

func CreateCheckUpdateCmd

func CreateCheckUpdateCmd() *cobra.Command

CreateCheckUpdateCmd 创建检查更新命令

func CreateDaemonCmd

func CreateDaemonCmd() *cobra.Command

CreateDaemonCmd 创建守护进程命令

func CreateLogCmd

func CreateLogCmd() *cobra.Command

CreateLogCmd 创建日志查看命令

func CreateRestartCmd

func CreateRestartCmd() *cobra.Command

CreateRestartCmd 创建重启命令

func CreateRootCmd

func CreateRootCmd() *cobra.Command

CreateRootCmd 创建根命令

func CreateStartCmd

func CreateStartCmd() *cobra.Command

CreateStartCmd 创建启动命令

func CreateStatusCmd

func CreateStatusCmd() *cobra.Command

CreateStatusCmd 创建状态命令

func CreateStopCmd

func CreateStopCmd() *cobra.Command

CreateStopCmd 创建停止命令

func CreateUpdateCmd

func CreateUpdateCmd() *cobra.Command

CreateUpdateCmd 创建更新命令

func CreateVersionCmd added in v0.4.1

func CreateVersionCmd() *cobra.Command

CreateVersionCmd 创建版本命令

func GetLogFile

func GetLogFile() string

GetLogFile 获取日志文件路径(与配置文件同一目录)

func GetPID

func GetPID() string

GetPID 获取守护进程PID

func GetPIDFile

func GetPIDFile() string

GetPIDFile 获取PID文件路径

func IsRunning

func IsRunning() bool

IsRunning 检查守护进程是否在运行

func StopDaemon

func StopDaemon() error

StopDaemon 停止守护进程

Types

This section is empty.

Jump to

Keyboard shortcuts

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