account

package
v0.0.0-...-80a1494 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: OSL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

func (*CommandHandler) Import

func (accountCommand *CommandHandler) Import(cmd *cobra.Command, _ []string)

Import a function to process importing an existing account

func (*CommandHandler) List

func (accountCommand *CommandHandler) List(cmd *cobra.Command, _ []string)

List a function to process listing all accounts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL