cli

package
v1.12.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile added in v1.4.4

func CreateConfigFile(configFile string)

CreateConfigFile 创建配置文件

参数:

  • configFile: 配置文件路径

func InstallGolangBasedProgram added in v1.4.0

func InstallGolangBasedProgram(config *general.Config)

InstallGolangBasedProgram 安装/更新基于 Golang 的程序

参数:

  • config: 解析 toml 配置文件得到的配置项

func InstallSelfProgram added in v1.4.0

func InstallSelfProgram(config *general.Config)

InstallSelfProgram 安装/更新管理程序本身

参数:

  • config: 解析 toml 配置文件得到的配置项

func InstallShellBasedProgram added in v1.4.0

func InstallShellBasedProgram(config *general.Config)

InstallShellBasedProgram 安装/更新基于 Shell 的程序

参数:

  • config: 解析 toml 配置文件得到的配置项

func OpenConfigFile added in v1.8.8

func OpenConfigFile(configFile string)

OpenConfigFile 打开配置文件

参数:

  • configFile: 配置文件路径

func PrintConfigFile added in v1.4.4

func PrintConfigFile(configFile string)

PrintConfigFile 打印配置文件内容

参数:

  • configFile: 配置文件路径

func PrintVersionInfo added in v1.4.4

func PrintVersionInfo(only bool)

PrintVersionInfo 打印版本信息

参数:

  • only: 是否只打印版本号

func ProgramConfigurator added in v1.4.2

func ProgramConfigurator(flags map[string]bool)

ProgramConfigurator 程序配置器

参数:

  • flags: 系统信息各部分的开关

func Uninstall added in v1.10.7

func Uninstall(config *general.Config, category string)

Uninstall 卸载指定程序

参数:

  • config: 解析 toml 配置文件得到的配置项
  • category: 要卸载的类别,支持 uninstall 子命令除 '--all' 和 '--self' 之外的所有 Flags

func UninstallSelf added in v1.10.7

func UninstallSelf(config *general.Config)

UninstallSelf 卸载管理程序本身

参数:

  • config: 解析 toml 配置文件得到的配置项

Types

This section is empty.

Jump to

Keyboard shortcuts

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