Documentation ¶
Index ¶
- func Execute(version string)
- type BlockAddCommand
- type BlockListAllCommand
- type BlockListCommand
- type BlockMainCommand
- type ConfigAddAccountCommand
- type ConfigListAccountsCommand
- type ConfigMainCommand
- type ConfigNewTokenCommand
- type ConfigSelectAccountCommand
- type ConfigViewCommand
- type GenDocsCommand
- type RepoAddCommand
- type RepoDeleteCommand
- type RepoListCommand
- type RepoMainCommand
- type RepoSelectCommand
- type RootCommand
- func (cmd *RootCommand) GenerateDocs(path string) error
- func (cmd *RootCommand) GetConfig() *common.Config
- func (cmd *RootCommand) InitConfig() *RootCommand
- func (cmd *RootCommand) IsVerbose() bool
- func (cmd *RootCommand) PreRun(_ *cobra.Command, _ []string)
- func (cmd *RootCommand) Run(_ *cobra.Command, args []string)
- func (cmd *RootCommand) Verbose(on bool)
- func (cmd *RootCommand) Verbosef(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockAddCommand ¶ added in v0.3.0
type BlockAddCommand struct { *common.BaseCommand BlockMainCmd *BlockMainCommand ForceAccount bool }
represents the 'block add' command.
type BlockListAllCommand ¶ added in v0.3.0
type BlockListAllCommand struct { *common.BaseCommand BlockMainCmd *BlockMainCommand }
represents the 'block list-all' command.
type BlockListCommand ¶ added in v0.3.0
type BlockListCommand struct { *common.BaseCommand BlockMainCmd *BlockMainCommand }
represents the 'block list' command.
type BlockMainCommand ¶ added in v0.3.0
type BlockMainCommand struct { *common.BaseCommand RootCmd *RootCommand Account string // contains filtered or unexported fields }
represents the 'block' main command.
func (*BlockMainCommand) Credentials ¶ added in v0.4.0
func (cmd *BlockMainCommand) Credentials() *common.GitlabCredentials
func (*BlockMainCommand) TargetRepository ¶ added in v0.3.0
func (cmd *BlockMainCommand) TargetRepository() string
Implement common.RepoCommand.TargetRepo.
type ConfigAddAccountCommand ¶ added in v0.4.0
type ConfigAddAccountCommand struct { *common.BaseCommand *common.GitlabCredentials ConfigMainCmd *ConfigMainCommand SkipBrowser bool AccountName string }
represents the 'config add-account' command.
type ConfigListAccountsCommand ¶ added in v0.4.0
type ConfigListAccountsCommand struct { *common.BaseCommand ConfigMainCmd *ConfigMainCommand }
represents the `config list-accounts` command.
type ConfigMainCommand ¶ added in v0.3.0
type ConfigMainCommand struct { *common.BaseCommand RootCmd *RootCommand }
represents the 'config' main command.
type ConfigNewTokenCommand ¶ added in v0.3.0
type ConfigNewTokenCommand struct { *common.BaseCommand *common.GitlabCredentials ConfigMainCmd *ConfigMainCommand }
represents the 'config new-token' command. Deprecated: functionality will be added to the add-account command.
type ConfigSelectAccountCommand ¶ added in v0.4.0
type ConfigSelectAccountCommand struct { *common.BaseCommand ConfigMainCmd *ConfigMainCommand }
represents the `config select-account` command.
type ConfigViewCommand ¶ added in v0.3.0
type ConfigViewCommand struct { *common.BaseCommand ConfigMainCmd *ConfigMainCommand LatestSchema bool }
represents the 'config view' command.
type GenDocsCommand ¶ added in v0.3.0
type GenDocsCommand struct { *common.BaseCommand RootCmd *RootCommand }
represents the (hidden) 'gen-docs' command.
type RepoAddCommand ¶ added in v0.3.0
type RepoAddCommand struct { *common.BaseCommand RepoMainCmd *RepoMainCommand GroupID int KubeConfigFile string }
represents the 'repo add' command.
type RepoDeleteCommand ¶ added in v0.3.0
type RepoDeleteCommand struct { *common.BaseCommand RepoMainCmd *RepoMainCommand SkipLocal, SkipGitlab, Yes bool }
represents the 'repo delete' command.
type RepoListCommand ¶ added in v0.3.0
type RepoListCommand struct { *common.BaseCommand RepoMainCmd *RepoMainCommand }
represents the 'repo list' command.
type RepoMainCommand ¶ added in v0.3.0
type RepoMainCommand struct { *common.BaseCommand *common.GitlabCredentials RootCmd *RootCommand Account string }
represents the 'repo' main command.
func (*RepoMainCommand) Credentials ¶ added in v0.4.0
func (cmd *RepoMainCommand) Credentials() *common.GitlabCredentials
type RepoSelectCommand ¶ added in v0.3.0
type RepoSelectCommand struct { *common.BaseCommand RepoMainCmd *RepoMainCommand }
represents the `repo select` command.
type RootCommand ¶ added in v0.3.0
type RootCommand struct { *common.BaseCommand CfgFile string // contains filtered or unexported fields }
represents the root command.
func NewRootCmd ¶ added in v0.3.0
func NewRootCmd(version string) *RootCommand
creates a new root command with the given version string.
func (*RootCommand) GenerateDocs ¶ added in v0.3.0
func (cmd *RootCommand) GenerateDocs(path string) error
generate man pages and markdown docs for the whole command tree. NB: markdown output is under source control.
func (*RootCommand) GetConfig ¶ added in v0.4.0
func (cmd *RootCommand) GetConfig() *common.Config
implementing common.ConfiguredCommand.GetConfig.
func (*RootCommand) InitConfig ¶ added in v0.3.0
func (cmd *RootCommand) InitConfig() *RootCommand
func (*RootCommand) IsVerbose ¶ added in v0.3.0
func (cmd *RootCommand) IsVerbose() bool
implementing common.VerboseCommand.IsVerbose.
func (*RootCommand) PreRun ¶ added in v0.4.0
func (cmd *RootCommand) PreRun(_ *cobra.Command, _ []string)
func (*RootCommand) Run ¶ added in v0.4.0
func (cmd *RootCommand) Run(_ *cobra.Command, args []string)
func (*RootCommand) Verbose ¶ added in v0.3.0
func (cmd *RootCommand) Verbose(on bool)
func (*RootCommand) Verbosef ¶ added in v0.3.0
func (cmd *RootCommand) Verbosef(format string, args ...interface{})
implementing common.VerboseCommand.Verbosef.