cli

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile added in v1.3.9

func CreateConfigFile(configFile string, reWrite bool)

CreateConfigFile 创建配置文件

参数:

  • configFile: 配置文件路径
  • reWrite: 是否覆写

func GrabSystemInformation added in v1.3.7

func GrabSystemInformation(configTree *toml.Tree, flags map[string]bool)

GrabSystemInformation 抓取系统信息 参数:

  • configTree: 解析 toml 配置文件得到的配置树
  • flags: 系统信息各部分的开关

func PrintConfigFile added in v1.3.9

func PrintConfigFile(configFile string)

PrintConfigFile 打印配置文件内容

参数:

  • configFile: 配置文件路径

func PrintVersionInfo added in v1.3.9

func PrintVersionInfo(only bool)

PrintVersionInfo 打印版本信息

参数:

  • only: 是否只打印版本号

Types

This section is empty.

Jump to

Keyboard shortcuts

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