Documentation ¶
Index ¶
- Constants
- Variables
- func Comp(actions ...CompAction) ...
- type Action
- type AttachRepo
- type BranchContext
- type CheckoutLocal
- type CheckoutRemote
- type CheckoutTag
- type CompAction
- type CompResult
- func CompBranchRemote(ctx *Context) (*CompResult, error)
- func CompBranchRemoteName(ctx *Context) (*CompResult, error)
- func CompGroups(ctx *Context) (*CompResult, error)
- func CompJobName(ctx *Context) (*CompResult, error)
- func CompLocalBranches(ctx *Context) (*CompResult, error)
- func CompLocalBranchesNoCurrent(ctx *Context) (*CompResult, error)
- func CompRemotes(ctx *Context) (*CompResult, error)
- func CompRepos(ctx *Context) (*CompResult, error)
- func CompTags(ctx *Context) (*CompResult, error)
- type ConfigRepo
- type Context
- func (ctx *Context) Close() error
- func (ctx *Context) GetArg(idx int, defaultValue string) string
- func (ctx *Context) GetArgFunc(idx int, f func() (string, error)) (string, error)
- func (ctx *Context) OnClose(f func())
- func (ctx *Context) Provider() (core.RepositoryProvider, error)
- func (ctx *Context) RunLoad(f func() error, msg string, args ...interface{}) error
- func (ctx *Context) RunProvider(f func(p core.RepositoryProvider) error, msg string, args ...interface{}) error
- type CreateBranch
- type CreateJob
- type CreateTag
- type DescribeBranch
- type DescribeRepo
- type EditJob
- type Home
- type Import
- type InitBranch
- type InitRemote
- type InitRepo
- type InitTag
- type Job
- type ListBranch
- type ListJob
- type ListRepo
- type ListSize
- type ListTag
- type Merge
- type OpenBranch
- type OpenRelease
- type OpenRepo
- type OpenUpstream
- type RemoveBranch
- type RemoveJob
- type RemoveRepo
- type RemoveTag
- type RunJob
- type RunRelease
- type SyncBranch
- type SyncJob
- type SyncRepo
- type SyncUpstream
- type SyncWorkspace
- type TagContext
Constants ¶
View Source
const CompNoSpaceFlag = cobra.ShellCompDirectiveNoSpace | cobra.ShellCompDirectiveNoFileComp
Variables ¶
View Source
var ( ErrNoUpstream = errors.New("this repo does not have an upstream") ErrNoRelease = errors.New("this repo does not have release config") ErrHasUncommittedChanges = errors.New("you have uncommitted changes in current branch, please handle them first") )
View Source
var EmptyCompResult = &CompResult{ Flag: cobra.ShellCompDirectiveNoFileComp, }
View Source
var ErrNoProvider = errors.New("require remote provider")
Functions ¶
func Comp ¶
func Comp(actions ...CompAction) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Types ¶
type AttachRepo ¶
type AttachRepo struct {
// contains filtered or unexported fields
}
func (*AttachRepo) Run ¶
func (wf *AttachRepo) Run(ctx *Context) error
type BranchContext ¶
type BranchContext struct { Locals []*git.BranchDetail Current *git.BranchDetail }
func (*BranchContext) GetBranch ¶ added in v0.0.2
func (ctx *BranchContext) GetBranch(name string) (*git.BranchDetail, error)
func (*BranchContext) GetLocalNames ¶ added in v0.0.2
func (ctx *BranchContext) GetLocalNames(current bool) []string
type CheckoutLocal ¶
type CheckoutLocal struct{}
func (*CheckoutLocal) PreRun ¶
func (wf *CheckoutLocal) PreRun(cmd *cobra.Command)
func (*CheckoutLocal) Run ¶
func (wf *CheckoutLocal) Run(ctx *Context) error
type CheckoutRemote ¶
type CheckoutRemote struct {
// contains filtered or unexported fields
}
func (*CheckoutRemote) PreRun ¶
func (wf *CheckoutRemote) PreRun(cmd *cobra.Command)
func (*CheckoutRemote) Run ¶
func (wf *CheckoutRemote) Run(ctx *Context) error
type CheckoutTag ¶
type CheckoutTag struct {
// contains filtered or unexported fields
}
func (*CheckoutTag) Run ¶
func (wf *CheckoutTag) Run(ctx *Context) error
type CompAction ¶
type CompAction func(ctx *Context) (*CompResult, error)
type CompResult ¶
type CompResult struct { Items []string Flag cobra.ShellCompDirective }
func CompBranchRemote ¶
func CompBranchRemote(ctx *Context) (*CompResult, error)
func CompBranchRemoteName ¶
func CompBranchRemoteName(ctx *Context) (*CompResult, error)
func CompGroups ¶
func CompGroups(ctx *Context) (*CompResult, error)
func CompJobName ¶
func CompJobName(ctx *Context) (*CompResult, error)
func CompLocalBranches ¶
func CompLocalBranches(ctx *Context) (*CompResult, error)
func CompLocalBranchesNoCurrent ¶
func CompLocalBranchesNoCurrent(ctx *Context) (*CompResult, error)
func CompRemotes ¶
func CompRemotes(ctx *Context) (*CompResult, error)
func CompRepos ¶
func CompRepos(ctx *Context) (*CompResult, error)
func CompTags ¶
func CompTags(ctx *Context) (*CompResult, error)
type ConfigRepo ¶
type ConfigRepo struct {
// contains filtered or unexported fields
}
func (*ConfigRepo) PreRun ¶
func (wf *ConfigRepo) PreRun(cmd *cobra.Command)
func (*ConfigRepo) Run ¶
func (wf *ConfigRepo) Run(ctx *Context) error
type Context ¶
type Context struct { Config *core.Config RepoStorage core.RepositoryStorage Args []string Remote *core.Remote Repo *core.Repository RemoteRepo *core.RemoteRepository RepoConfig *repoconfig.Config Branch *BranchContext Tag *TagContext JobManager *job.Manager RepoJob *job.Repository SelectJob *job.Job // contains filtered or unexported fields }
func NewContext ¶
func (*Context) GetArgFunc ¶ added in v0.0.2
func (*Context) RunProvider ¶
type CreateBranch ¶
type CreateBranch struct {
// contains filtered or unexported fields
}
func (*CreateBranch) PreRun ¶
func (wf *CreateBranch) PreRun(cmd *cobra.Command)
func (*CreateBranch) Run ¶
func (wf *CreateBranch) Run(ctx *Context) error
type DescribeBranch ¶ added in v0.0.2
type DescribeBranch struct{}
func (*DescribeBranch) PreRun ¶ added in v0.0.2
func (wf *DescribeBranch) PreRun(cmd *cobra.Command)
func (*DescribeBranch) Run ¶ added in v0.0.2
func (wf *DescribeBranch) Run(ctx *Context) error
type DescribeRepo ¶ added in v0.0.2
type DescribeRepo struct {
// contains filtered or unexported fields
}
func (*DescribeRepo) PreRun ¶ added in v0.0.2
func (wf *DescribeRepo) PreRun(cmd *cobra.Command)
func (*DescribeRepo) Run ¶ added in v0.0.2
func (wf *DescribeRepo) Run(ctx *Context) error
type InitBranch ¶
type InitBranch struct { NoFetch bool BackupCurrent bool // contains filtered or unexported fields }
func (*InitBranch) Run ¶
func (wf *InitBranch) Run(ctx *Context) error
type InitRemote ¶
type InitRemote struct { Require bool // contains filtered or unexported fields }
func (*InitRemote) PreRun ¶
func (wf *InitRemote) PreRun(cmd *cobra.Command)
func (*InitRemote) Run ¶
func (wf *InitRemote) Run(ctx *Context) error
type InitRepo ¶
type InitTag ¶
type ListBranch ¶
type ListBranch struct {
// contains filtered or unexported fields
}
func (*ListBranch) PreRun ¶
func (wf *ListBranch) PreRun(cmd *cobra.Command)
func (*ListBranch) Run ¶
func (wf *ListBranch) Run(ctx *Context) error
type OpenBranch ¶ added in v0.0.2
type OpenBranch struct{}
func (*OpenBranch) PreRun ¶ added in v0.0.2
func (wf *OpenBranch) PreRun(cmd *cobra.Command)
func (*OpenBranch) Run ¶ added in v0.0.2
func (wf *OpenBranch) Run(ctx *Context) error
type OpenRelease ¶
type OpenRelease struct {
// contains filtered or unexported fields
}
func (*OpenRelease) PreRun ¶
func (wf *OpenRelease) PreRun(cmd *cobra.Command)
func (*OpenRelease) Run ¶
func (wf *OpenRelease) Run(ctx *Context) error
type OpenUpstream ¶ added in v0.0.2
type OpenUpstream struct { }
func (*OpenUpstream) PreRun ¶ added in v0.0.2
func (wf *OpenUpstream) PreRun(cmd *cobra.Command)
func (*OpenUpstream) Run ¶ added in v0.0.2
func (wf *OpenUpstream) Run(ctx *Context) error
type RemoveBranch ¶
type RemoveBranch struct{}
func (*RemoveBranch) PreRun ¶
func (wf *RemoveBranch) PreRun(cmd *cobra.Command)
func (*RemoveBranch) Run ¶
func (wf *RemoveBranch) Run(ctx *Context) error
type RemoveRepo ¶
type RemoveRepo struct {
// contains filtered or unexported fields
}
func (*RemoveRepo) PreRun ¶
func (wf *RemoveRepo) PreRun(cmd *cobra.Command)
func (*RemoveRepo) Run ¶
func (wf *RemoveRepo) Run(ctx *Context) error
type RunRelease ¶
type RunRelease struct {
// contains filtered or unexported fields
}
func (*RunRelease) PreRun ¶
func (wf *RunRelease) PreRun(cmd *cobra.Command)
func (*RunRelease) Run ¶
func (wf *RunRelease) Run(ctx *Context) error
type SyncBranch ¶
type SyncBranch struct {
// contains filtered or unexported fields
}
func (*SyncBranch) Run ¶
func (wf *SyncBranch) Run(ctx *Context) error
type SyncUpstream ¶ added in v0.0.2
type SyncUpstream struct {
// contains filtered or unexported fields
}
func (*SyncUpstream) PreRun ¶ added in v0.0.2
func (wf *SyncUpstream) PreRun(cmd *cobra.Command)
func (*SyncUpstream) Run ¶ added in v0.0.2
func (wf *SyncUpstream) Run(ctx *Context) error
type SyncWorkspace ¶
type SyncWorkspace struct {
// contains filtered or unexported fields
}
func (*SyncWorkspace) Run ¶
func (wf *SyncWorkspace) Run(ctx *Context) error
type TagContext ¶
Click to show internal directories.
Click to hide internal directories.