Documentation
¶
Index ¶
- func Add(opts ...fileOption) error
- func Args(args ...interface{}) *optionArgs
- func Async() *optionAsync
- func Auth(opts ...authOption) error
- func Author(author string, opts ...option) error
- func Bin(bin string) *optionExe
- func Branch(branch string) *optionBranch
- func Clean(opts ...cleanOption) (err error)
- func Commit(message string, opts ...fileOption) (err error)
- func Contains(contains string) *optionContains
- func Count(opts ...countOption) (total int64, err error)
- func Dir(dir string) *optionDir
- func DisablePwe() *optionPwe
- func Email(email string, opts ...option) error
- func Env(key string, value string) *optionEnvironment
- func Environment(key string, value string) *optionEnvironment
- func Exe(exe string) *optionExe
- func Exec(opts ...option) error
- func Filenames(filenames ...string) *optionFile
- func Folder(folder string) *optionDir
- func Init(opts ...option) error
- func Latest() *optionSkip
- func Line(line *int64) *optionLine
- func Name(name string) *optionName
- func Netrc(uri string, username string, password string) *optionAuth
- func Push(opts ...pushOption) error
- func Pwe() *optionPwe
- func Remote(url string, opts ...remoteOption) (err error)
- func SafeDirectory(opts ...option) error
- func Second() *optionSkip
- func Skip(skip int) *optionSkip
- func Ssh(key string, opts ...sshOption) *optionAuth
- func String(output *string) *optionString
- func StringEnv(env string) *optionStringEnvironments
- func StringEnvironment(environment string) *optionStringEnvironments
- func StringEnvironments(environments ...string) *optionStringEnvironments
- func StringEnvs(envs ...string) *optionStringEnvironments
- func Sync() *optionAsync
- func Tag(opts ...tagOption) (tag string, err error)
- func Tagging() *optionCountType
- func User(author string, email string, opts ...option) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeDirectory ¶ added in v0.0.2
func SafeDirectory(opts ...option) error
func StringEnvironment ¶
func StringEnvironment(environment string) *optionStringEnvironments
StringEnvironment 环境变量
func StringEnvironments ¶
func StringEnvironments(environments ...string) *optionStringEnvironments
StringEnvironments 环境变量列表
Types ¶
This section is empty.
Source Files
¶
- auth.go
- auth_option.go
- auth_writer.go
- checker.go
- checker_mode.go
- clean_option.go
- collector.go
- collector_mode.go
- commit.go
- common.go
- config.go
- const.go
- count.go
- count_option.go
- count_type.go
- counter.go
- counter_mode.go
- exec.go
- file_option.go
- netrc.go
- option.go
- option_args.go
- option_async.go
- option_auth.go
- option_branch.go
- option_contains.go
- option_count_type.go
- option_dir.go
- option_environment.go
- option_environments_string.go
- option_exe.go
- option_file.go
- option_line.go
- option_name.go
- option_pwe.go
- option_skip.go
- option_string.go
- push.go
- push_option.go
- remote.go
- remote_option.go
- ssh.go
- ssh_option.go
- tag.go
- tag_option.go
Click to show internal directories.
Click to hide internal directories.