Documentation ¶
Index ¶
- func Execute(version string, doneAt string)
- type BlockAddCommand
- type BlockEditCommand
- type BlockListAllCommand
- type BlockListCommand
- type BlockMainCommand
- type ConfigAddAccountCommand
- type ConfigListAccountsCommand
- type ConfigMainCommand
- type ConfigNewTokenCommand
- type ConfigRemoveAccountCommand
- type ConfigSelectAccountCommand
- type ConfigViewCommand
- type GenDocsCommand
- type MigrateReposCommand
- type RepoAddCommand
- type RepoDeleteCommand
- type RepoListCommand
- type RepoMainCommand
- type RepoPublishCommand
- 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 Publish, Yes bool }
represents the 'block add' command.
type BlockEditCommand ¶ added in v0.8.0
type BlockEditCommand struct { *common.BaseCommand BlockMainCmd *BlockMainCommand NoEditor, NoAddDefaults bool }
represents the 'block edit' command.
type BlockListAllCommand ¶ added in v0.3.0
type BlockListAllCommand struct { *common.BaseCommand BlockMainCmd *BlockMainCommand Short bool }
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(creds *common.GitlabCredentials) *common.RepoInfo
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 ConfigRemoveAccountCommand ¶ added in v0.8.0
type ConfigRemoveAccountCommand struct { *common.BaseCommand ConfigMainCmd *ConfigMainCommand Yes bool }
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, Raw bool }
represents the 'config view' command.
type GenDocsCommand ¶ added in v0.3.0
type GenDocsCommand struct { *common.BaseCommand RootCmd *RootCommand }
generates markdown docs and manpages.
type MigrateReposCommand ¶ added in v0.6.0
type MigrateReposCommand struct { *common.BaseCommand RootCmd *RootCommand }
NB: remove with 1.0 migrates location of local repo clones.
type RepoAddCommand ¶ added in v0.3.0
type RepoAddCommand struct { *common.BaseCommand RepoMainCmd *RepoMainCommand GroupID int KubeConfigFile string FindKubeConfig bool }
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 Short bool }
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 NewRepoMainCmd ¶ added in v0.8.0
func NewRepoMainCmd(root *RootCommand) *RepoMainCommand
func (*RepoMainCommand) Credentials ¶ added in v0.4.0
func (cmd *RepoMainCommand) Credentials() (creds *common.GitlabCredentials)
func (*RepoMainCommand) CurrentRepo ¶ added in v0.7.0
func (cmd *RepoMainCommand) CurrentRepo(args []string) *common.RepoInfo
returns the repo info object for the explicitly provided name or for the selected repository otherwise.
type RepoPublishCommand ¶ added in v0.7.0
type RepoPublishCommand struct { *common.BaseCommand RepoMainCmd *RepoMainCommand Empty bool }
represents the `repo publish` command.
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, doneAt 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.
Source Files ¶
- block_add.go
- block_edit.go
- block_list.go
- block_listall.go
- block_main.go
- config_addAccount.go
- config_listAccounts.go
- config_main.go
- config_newToken.go
- config_removeAccount.go
- config_selectAccount.go
- config_view.go
- hidden_commands.go
- repo_add.go
- repo_delete.go
- repo_list.go
- repo_main.go
- repo_publish.go
- repo_select.go
- root.go