Documentation ¶
Index ¶
- type Command
- func (c *Command) Add(cmd Service)
- func (c *Command) Cmd() *cobra.Command
- func (c *Command) CurrentBranch(ci bool) glow.Branch
- func (c *Command) GitClient() git.Service
- func (c *Command) GitProvider() gitprovider.Service
- func (c *Command) Patch() Service
- func (c *Command) PatchRun(fieldName string, run func(cmd Service, args []string))
- func (c *Command) PostSetup(parent Service) Service
- func (c *Command) SemverClient() semver.Service
- func (c *Command) SetGitClient(gc git.Service)
- func (c *Command) SetGitProvider(gp gitprovider.Service)
- func (c *Command) SetSemverClient(s semver.Service)
- func (c *Command) SetupServices(override bool) Service
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { *cobra.Command PreRun func(cmd Service, args []string) Run func(cmd Service, args []string) PostRun func(cmd Service, args []string) PersistentPreRun func(cmd Service, args []string) PersistentRun func(cmd Service, args []string) PersistentPostRun func(cmd Service, args []string) // contains filtered or unexported fields }
func (*Command) GitProvider ¶
func (c *Command) GitProvider() gitprovider.Service
func (*Command) SemverClient ¶
func (*Command) SetGitClient ¶
func (*Command) SetGitProvider ¶
func (c *Command) SetGitProvider(gp gitprovider.Service)
func (*Command) SetSemverClient ¶
func (*Command) SetupServices ¶
type Service ¶
type Service interface { Cmd() *cobra.Command Execute() error Add(Service) PostSetup(parent Service) Service SetupServices(override bool) Service SetGitClient(git.Service) GitClient() git.Service SetGitProvider(gitprovider.Service) GitProvider() gitprovider.Service SetSemverClient(semver.Service) SemverClient() semver.Service Patch() Service PatchRun(fieldName string, run func(cmd Service, args []string)) CurrentBranch(ci bool) glow.Branch }
Click to show internal directories.
Click to hide internal directories.