Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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(confile, source string)
RollingPullRepos 遍历拉取远端仓库的更改到本地
参数:
- confile: 程序配置文件
- source: 远端仓库源,支持 'github' 和 'gitea',默认为 'github'
Types ¶
type Config ¶ added in v0.12.7
type Config struct { Git GitConfig `toml:"git"` Script ScriptConfig `toml:"script"` SSH SSHConfig `toml:"ssh"` Storage StorageConfig `toml:"storage"` }
用于转换 Toml 配置树的结构体
func LoadConfigToStruct ¶ added in v0.12.7
LoadConfigToStruct 将 Toml 配置树加载到结构体
参数:
- configTree: 解析 toml 配置文件得到的配置树
返回:
- 结构体
- 错误信息
type ScriptConfig ¶ added in v0.12.7
type ScriptConfig struct {
NameList []string `toml:"name_list"`
}
type StorageConfig ¶ added in v0.12.7
type StorageConfig struct {
Path string `toml:"path"`
}
Click to show internal directories.
Click to hide internal directories.