Documentation
¶
Index ¶
- func Add(rootDir, project, dir, branch string) (repository string)
- func Clone(rootDir, project, repository string) (dir string)
- func Commit(rootDir, msg string)
- func ContainsString(array []string, val string) int
- func Push(rootDir, project, dir, branch string)
- func Release(rootDir, tag string)
- func Remotes(rootDir string) []string
- func Remove(rootDir, project string)
- func SafeStash(rootDir string, fn func())
- func Sync(rootDir, project, dir, branch string)
- func Zip(rootDir string)
- type Command
- type Project
- type ProjectXml
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString 在一个 string 数组中进行查找,找不到返回 -1。
func Push ¶ added in v0.0.2
func Push(rootDir, project, dir, branch string)
Push 推送远程项目,branch 默认为 main
func SafeStash ¶ added in v0.0.2
func SafeStash(rootDir string, fn func())
SafeStash 安全地暂存和恢复用户未提交的修改
Types ¶
type Command ¶
type Command []string
Command 封装 os 命令行参数
func (Command) RunOnBuffer ¶ added in v0.0.3
Run 执行 os 命令行
func (Command) RunOnConsole ¶ added in v0.0.3
Run 执行 os 命令行
type ProjectXml ¶ added in v0.0.2
func (*ProjectXml) Find ¶ added in v0.0.3
func (p *ProjectXml) Find(project string) (Project, bool)
Find 查找一个项目,成功返回 true,失败返回 false
func (*ProjectXml) Read ¶ added in v0.0.2
func (p *ProjectXml) Read(filename string) error
Read 读取配置文件
func (*ProjectXml) Remove ¶ added in v0.0.2
func (p *ProjectXml) Remove(project string)
Remove 移除一个项目
func (*ProjectXml) Save ¶ added in v0.0.2
func (p *ProjectXml) Save(filename string) error
Save 保存配置文件
Click to show internal directories.
Click to hide internal directories.