cli

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: GPL-3.0 Imports: 9 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)

CreateConfigFile 创建配置文件

参数:

  • configFile: 配置文件路径

func GrabInformationToTab added in v1.6.0

func GrabInformationToTab(configTree *toml.Tree)

GrabInformationToTab 抓取信息,各种信息通过标签交互展示

参数:

  • configTree: 解析 toml 配置文件得到的配置树

func GrabInformationToTable added in v1.6.0

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

GrabInformationToTable 抓取信息,各种信息分别输出为表格

参数:

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

func OpenConfigFile added in v1.6.3

func OpenConfigFile(configFile string)

OpenConfigFile 打开配置文件

参数:

  • configFile: 配置文件路径

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