cli

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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 v0.13.1

func CreateConfigFile(configFile string, reWrite bool)

CreateConfigFile 创建配置文件

参数:

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

func PrintConfigFile added in v0.13.1

func PrintConfigFile(configFile string)

PrintConfigFile 打印配置文件内容

参数:

  • configFile: 配置文件路径

func PrintVersionInfo added in v0.13.1

func PrintVersionInfo(only bool)

PrintVersionInfo 打印版本信息

参数:

  • only: 是否只打印版本号

func RollingCloneRepos

func RollingCloneRepos(configTree *toml.Tree, source string)

RollingCloneRepos 遍历克隆远端仓库到本地

参数:

  • configTree: 解析 toml 配置文件得到的配置树
  • source: 远端仓库源,支持 'github' 和 'gitea',默认为 'github'

func RollingPullRepos added in v0.11.0

func RollingPullRepos(configTree *toml.Tree, source string)

RollingPullRepos 遍历拉取远端仓库的更改到本地

参数:

  • configTree: 解析 toml 配置文件得到的配置树
  • source: 远端仓库源,支持 'github' 和 'gitea',默认为 'github'

Types

This section is empty.

Jump to

Keyboard shortcuts

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