Documentation
¶
Index ¶
- type Apply
- type Cd
- type Drop
- type Find
- type Init
- type List
- type Patch
- func (Patch) Aliases() []string
- func (p *Patch) CompleteSubArgs(arg string) []string
- func (*Patch) CompleteSubNames(arg string) []string
- func (Patch) Context() commands.CommandContext
- func (Patch) Description() string
- func (p Patch) Execute(args []string) error
- func (p *Patch) ParseSub(arg string) error
- type Rebase
- type Switch
- type Term
- type Unlink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apply ¶
type Apply struct {
Cmd string `opt:"-c" desc:"Apply patches with provided command."`
Worktree string `opt:"-w" desc:"Create linked worktree on this <commit-ish>."`
Tag string `opt:"tag" required:"true" complete:"CompleteTag" desc:"Identify patches with tag."`
}
func (*Apply) CompleteTag ¶
func (Apply) Context ¶
func (Apply) Context() commands.CommandContext
func (Apply) Description ¶
type Cd ¶
type Cd struct{}
func (Cd) Context ¶
func (Cd) Context() commands.CommandContext
func (Cd) Description ¶
type Drop ¶
type Drop struct {
Tag string `opt:"tag" complete:"CompleteTag" desc:"Repository patch tag."`
}
func (*Drop) CompleteTag ¶
func (Drop) Context ¶
func (Drop) Context() commands.CommandContext
func (Drop) Description ¶
type Find ¶
type Find struct {
Filter bool `opt:"-f" desc:"Filter message list instead of search."`
Commit []string `opt:"..." required:"true" complete:"Complete" desc:"Search for <commit-ish>."`
}
func (Find) Context ¶
func (Find) Context() commands.CommandContext
func (Find) Description ¶
type Init ¶
type Init struct {
Force bool `opt:"-f" desc:"Overwrite any existing project."`
Name string `opt:"name" required:"false"`
}
func (Init) Context ¶
func (Init) Context() commands.CommandContext
func (Init) Description ¶
type List ¶
type List struct {
All bool `opt:"-a" desc:"List all projects."`
}
func (List) Context ¶
func (List) Context() commands.CommandContext
func (List) Description ¶
type Patch ¶
type Patch struct {
SubCmd commands.Command `opt:":cmd:" action:"ParseSub" complete:"CompleteSubNames"`
}
func (*Patch) CompleteSubArgs ¶
func (*Patch) CompleteSubNames ¶
func (Patch) Context ¶
func (Patch) Context() commands.CommandContext
func (Patch) Description ¶
type Rebase ¶
type Rebase struct {
Commit string `opt:"commit" required:"false"`
}
func (Rebase) Context ¶
func (Rebase) Context() commands.CommandContext
func (Rebase) Description ¶
type Switch ¶
type Switch struct {
Project string `opt:"project" complete:"Complete" desc:"Project name."`
}
func (Switch) Context ¶
func (Switch) Context() commands.CommandContext
func (Switch) Description ¶
type Term ¶
type Term struct {
Cmd []string `opt:"..." required:"false"`
}
func (Term) Context ¶
func (Term) Context() commands.CommandContext
func (Term) Description ¶
type Unlink ¶
type Unlink struct {
Tag string `opt:"tag" required:"false" complete:"Complete" desc:"Project tag name."`
}
func (Unlink) Context ¶
func (Unlink) Context() commands.CommandContext
func (Unlink) Description ¶
Click to show internal directories.
Click to hide internal directories.