Documentation
¶
Index ¶
- type CommandHandler
- func (accountCommand *CommandHandler) Command() *cobra.Command
- func (accountCommand *CommandHandler) Create(cmd *cobra.Command, _ []string)
- func (accountCommand *CommandHandler) Default(_ *cobra.Command, _ []string)
- func (accountCommand *CommandHandler) Export(_ *cobra.Command, _ []string)
- func (accountCommand *CommandHandler) GetCreateCommand() *cobra.Command
- func (accountCommand *CommandHandler) GetDefaultCommand() *cobra.Command
- func (accountCommand *CommandHandler) GetExportCommand() *cobra.Command
- func (accountCommand *CommandHandler) GetImportCommand() *cobra.Command
- func (accountCommand *CommandHandler) GetListCommand() *cobra.Command
- func (accountCommand *CommandHandler) Import(cmd *cobra.Command, _ []string)
- func (accountCommand *CommandHandler) List(cmd *cobra.Command, _ []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler struct { Logic logic.Logic Prompt console.Prompt AppConfig config.Configuration }
func NewCommandHandler ¶
func NewCommandHandler(logic logic.Logic, prompt console.Prompt, config config.Configuration) *CommandHandler
NewCommandHandler creates an account command handler instance.
func (*CommandHandler) Command ¶
func (accountCommand *CommandHandler) Command() *cobra.Command
Command function generates all account commands
func (*CommandHandler) Create ¶
func (accountCommand *CommandHandler) Create(cmd *cobra.Command, _ []string)
Create a function to process creating a new account
func (*CommandHandler) Default ¶
func (accountCommand *CommandHandler) Default(_ *cobra.Command, _ []string)
Default a function to process getting a default account
func (*CommandHandler) Export ¶
func (accountCommand *CommandHandler) Export(_ *cobra.Command, _ []string)
Export a function to process exporting an account
func (*CommandHandler) GetCreateCommand ¶
func (accountCommand *CommandHandler) GetCreateCommand() *cobra.Command
GetCreateCommand function return account create command
func (*CommandHandler) GetDefaultCommand ¶
func (accountCommand *CommandHandler) GetDefaultCommand() *cobra.Command
GetDefaultCommand function return account default command
func (*CommandHandler) GetExportCommand ¶
func (accountCommand *CommandHandler) GetExportCommand() *cobra.Command
GetExportCommand function return account export command
func (*CommandHandler) GetImportCommand ¶
func (accountCommand *CommandHandler) GetImportCommand() *cobra.Command
GetImportCommand function return account import command
func (*CommandHandler) GetListCommand ¶
func (accountCommand *CommandHandler) GetListCommand() *cobra.Command
GetListCommand function return account list command
Click to show internal directories.
Click to hide internal directories.