Documentation ¶
Index ¶
- Constants
- Variables
- type Args
- func (a *Args) After(command ...string)
- func (a *Args) AppendParams(params ...string)
- func (a *Args) Before(command ...string)
- func (a *Args) Commands() []*cmd.Cmd
- func (a *Args) FirstParam() string
- func (a *Args) GetParam(i int) string
- func (a *Args) IndexOfParam(param string) int
- func (a *Args) InsertParam(i int, items ...string)
- func (a *Args) IsParamsEmpty() bool
- func (a *Args) LastParam() string
- func (a *Args) ParamsSize() int
- func (a *Args) PrependParams(params ...string)
- func (a *Args) RemoveParam(i int) string
- func (a *Args) Replace(executable, command string, params ...string)
- func (a *Args) ReplaceParam(i int, item string)
- func (a *Args) ToCmd() *cmd.Cmd
- type Command
- type Runner
Constants ¶
View Source
const Version = "0.22.0"
Variables ¶
View Source
var ( NameRe = "[\\w.][\\w.-]*" OwnerRe = "[a-zA-Z0-9][a-zA-Z0-9-]*" NameWithOwnerRe = fmt.Sprintf("^(?:%s|%s\\/%s)$", NameRe, OwnerRe, NameRe) )
View Source
var Basic = []*Command{
cmdInit,
}
View Source
var Branching = []*Command{
cmdCheckout,
cmdMerge,
cmdApply,
cmdCherryPick,
}
View Source
var GitHub = []*Command{
cmdPullRequest,
cmdFork,
cmdCreate,
cmdCiStatus,
cmdBrowse,
cmdCompare,
}
View Source
var Remote = []*Command{
cmdClone,
cmdFetch,
cmdPush,
cmdRemote,
cmdSubmodule,
}
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { Executable string Command string Params []string Noop bool // contains filtered or unexported fields }
func (*Args) AppendParams ¶
func (*Args) FirstParam ¶
func (*Args) IndexOfParam ¶
func (*Args) InsertParam ¶ added in v0.15.0
func (*Args) IsParamsEmpty ¶
func (*Args) ParamsSize ¶
func (*Args) PrependParams ¶ added in v0.19.2
func (*Args) RemoveParam ¶
func (*Args) ReplaceParam ¶
Click to show internal directories.
Click to hide internal directories.