Documentation
¶
Index ¶
- func NewInitCommand(cfgHandler ConfigurationHandler, prompter prompter.Prompter) *cobra.Command
- func NewSetOriginCommand(cfgHandler ConfigurationHandler) *cobra.Command
- func NewSetTokenCommand(cfgHandler ConfigurationHandler) *cobra.Command
- func NewSetTokenEnvNameCommand(cfgHandler ConfigurationHandler) *cobra.Command
- func NewSwitchTrustGitBranchCommand(cfgHandler ConfigurationHandler) *cobra.Command
- type BasicConfigurationHandler
- type Config
- type ConfigurationHandler
- type MockConfigurationHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInitCommand ¶
func NewInitCommand(cfgHandler ConfigurationHandler, prompter prompter.Prompter) *cobra.Command
func NewSetOriginCommand ¶
func NewSetOriginCommand(cfgHandler ConfigurationHandler) *cobra.Command
func NewSetTokenCommand ¶
func NewSetTokenCommand(cfgHandler ConfigurationHandler) *cobra.Command
func NewSetTokenEnvNameCommand ¶
func NewSetTokenEnvNameCommand(cfgHandler ConfigurationHandler) *cobra.Command
func NewSwitchTrustGitBranchCommand ¶
func NewSwitchTrustGitBranchCommand(cfgHandler ConfigurationHandler) *cobra.Command
Types ¶
type BasicConfigurationHandler ¶
type BasicConfigurationHandler struct {
// contains filtered or unexported fields
}
func NewBasicConfigurationHandler ¶
func NewBasicConfigurationHandler() *BasicConfigurationHandler
func (*BasicConfigurationHandler) GetToken ¶
func (h *BasicConfigurationHandler) GetToken() string
func (*BasicConfigurationHandler) LoadConfig ¶
func (h *BasicConfigurationHandler) LoadConfig() *Config
func (*BasicConfigurationHandler) SaveConfig ¶
func (h *BasicConfigurationHandler) SaveConfig(config *Config) error
type ConfigurationHandler ¶
type MockConfigurationHandler ¶
type MockConfigurationHandler struct {
// contains filtered or unexported fields
}
func NewMockConfigurationHandler ¶
func NewMockConfigurationHandler() *MockConfigurationHandler
func (*MockConfigurationHandler) GetToken ¶
func (h *MockConfigurationHandler) GetToken() string
func (*MockConfigurationHandler) LoadConfig ¶
func (h *MockConfigurationHandler) LoadConfig() *Config
func (*MockConfigurationHandler) SaveConfig ¶
func (h *MockConfigurationHandler) SaveConfig(cfg *Config) error
func (*MockConfigurationHandler) SetConfig ¶
func (h *MockConfigurationHandler) SetConfig(cfg *Config)
func (*MockConfigurationHandler) SetError ¶
func (h *MockConfigurationHandler) SetError(err error)
Click to show internal directories.
Click to hide internal directories.