cli

package
v0.0.0-...-f962fb9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Completer

func Completer(d prompt.Document) []prompt.Suggest

func Executor

func Executor(s string)

Types

type AccountCommand

type AccountCommand struct{}

func (*AccountCommand) Description

func (a *AccountCommand) Description() string

func (*AccountCommand) Execute

func (a *AccountCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountCommand) FollowedBy

func (a *AccountCommand) FollowedBy() []string

func (*AccountCommand) Subcommands

func (a *AccountCommand) Subcommands() []string

func (*AccountCommand) SupportedArguments

func (a *AccountCommand) SupportedArguments() []string

func (*AccountCommand) Text

func (a *AccountCommand) Text() string

type AccountDeriveArgumentPassword

type AccountDeriveArgumentPassword struct{ *BaseArgument }

func (*AccountDeriveArgumentPassword) Description

func (a *AccountDeriveArgumentPassword) Description() string

func (*AccountDeriveArgumentPassword) Text

type AccountDeriveArgumentPath

type AccountDeriveArgumentPath struct{ *BaseArgument }

func (*AccountDeriveArgumentPath) Description

func (a *AccountDeriveArgumentPath) Description() string

func (*AccountDeriveArgumentPath) Text

type AccountDeriveCommand

type AccountDeriveCommand struct{}

func (*AccountDeriveCommand) Description

func (a *AccountDeriveCommand) Description() string

func (*AccountDeriveCommand) Execute

func (a *AccountDeriveCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountDeriveCommand) FollowedBy

func (a *AccountDeriveCommand) FollowedBy() []string

func (*AccountDeriveCommand) Subcommands

func (a *AccountDeriveCommand) Subcommands() []string

func (*AccountDeriveCommand) SupportedArguments

func (a *AccountDeriveCommand) SupportedArguments() []string

func (*AccountDeriveCommand) Text

func (a *AccountDeriveCommand) Text() string

type AccountExportCommand

type AccountExportCommand struct{}

func (*AccountExportCommand) Description

func (a *AccountExportCommand) Description() string

func (*AccountExportCommand) Execute

func (a *AccountExportCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountExportCommand) FollowedBy

func (a *AccountExportCommand) FollowedBy() []string

func (*AccountExportCommand) Subcommands

func (a *AccountExportCommand) Subcommands() []string

func (*AccountExportCommand) SupportedArguments

func (a *AccountExportCommand) SupportedArguments() []string

func (*AccountExportCommand) Text

func (a *AccountExportCommand) Text() string

type AccountGetBalanceCommand

type AccountGetBalanceCommand struct{}

func (*AccountGetBalanceCommand) Description

func (a *AccountGetBalanceCommand) Description() string

func (*AccountGetBalanceCommand) Execute

func (a *AccountGetBalanceCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountGetBalanceCommand) FollowedBy

func (a *AccountGetBalanceCommand) FollowedBy() []string

func (*AccountGetBalanceCommand) Subcommands

func (a *AccountGetBalanceCommand) Subcommands() []string

func (*AccountGetBalanceCommand) SupportedArguments

func (a *AccountGetBalanceCommand) SupportedArguments() []string

func (*AccountGetBalanceCommand) Text

func (a *AccountGetBalanceCommand) Text() string

type AccountGetKeyArgumentMnemonic

type AccountGetKeyArgumentMnemonic struct{ *BaseArgument }

func (*AccountGetKeyArgumentMnemonic) Description

func (a *AccountGetKeyArgumentMnemonic) Description() string

func (*AccountGetKeyArgumentMnemonic) Text

type AccountGetKeyArgumentPassword

type AccountGetKeyArgumentPassword struct{ *BaseArgument }

func (*AccountGetKeyArgumentPassword) Description

func (a *AccountGetKeyArgumentPassword) Description() string

func (*AccountGetKeyArgumentPassword) Text

type AccountGetKeyCommand

type AccountGetKeyCommand struct{}

func (*AccountGetKeyCommand) Description

func (a *AccountGetKeyCommand) Description() string

func (*AccountGetKeyCommand) Execute

func (a *AccountGetKeyCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountGetKeyCommand) FollowedBy

func (a *AccountGetKeyCommand) FollowedBy() []string

func (*AccountGetKeyCommand) Subcommands

func (a *AccountGetKeyCommand) Subcommands() []string

func (*AccountGetKeyCommand) SupportedArguments

func (a *AccountGetKeyCommand) SupportedArguments() []string

func (*AccountGetKeyCommand) Text

func (a *AccountGetKeyCommand) Text() string

type AccountImportArgumentWif

type AccountImportArgumentWif struct{ *BaseArgument }

func (*AccountImportArgumentWif) Description

func (a *AccountImportArgumentWif) Description() string

func (*AccountImportArgumentWif) Text

func (a *AccountImportArgumentWif) Text() string

type AccountImportCommand

type AccountImportCommand struct{}

func (*AccountImportCommand) Description

func (a *AccountImportCommand) Description() string

func (*AccountImportCommand) Execute

func (a *AccountImportCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountImportCommand) FollowedBy

func (a *AccountImportCommand) FollowedBy() []string

func (*AccountImportCommand) Subcommands

func (a *AccountImportCommand) Subcommands() []string

func (*AccountImportCommand) SupportedArguments

func (a *AccountImportCommand) SupportedArguments() []string

func (*AccountImportCommand) Text

func (a *AccountImportCommand) Text() string

type AccountListCommand

type AccountListCommand struct{}

func (*AccountListCommand) Description

func (a *AccountListCommand) Description() string

func (*AccountListCommand) Execute

func (a *AccountListCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountListCommand) FollowedBy

func (a *AccountListCommand) FollowedBy() []string

func (*AccountListCommand) Subcommands

func (a *AccountListCommand) Subcommands() []string

func (*AccountListCommand) SupportedArguments

func (a *AccountListCommand) SupportedArguments() []string

func (*AccountListCommand) Text

func (a *AccountListCommand) Text() string

type AccountNewCommand

type AccountNewCommand struct{}

func (*AccountNewCommand) Description

func (a *AccountNewCommand) Description() string

func (*AccountNewCommand) Execute

func (a *AccountNewCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountNewCommand) FollowedBy

func (a *AccountNewCommand) FollowedBy() []string

func (*AccountNewCommand) Subcommands

func (a *AccountNewCommand) Subcommands() []string

func (*AccountNewCommand) SupportedArguments

func (a *AccountNewCommand) SupportedArguments() []string

func (*AccountNewCommand) Text

func (a *AccountNewCommand) Text() string

type AccountNewMCommand

type AccountNewMCommand struct{}

func (*AccountNewMCommand) Description

func (a *AccountNewMCommand) Description() string

func (*AccountNewMCommand) Execute

func (a *AccountNewMCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountNewMCommand) FollowedBy

func (a *AccountNewMCommand) FollowedBy() []string

func (*AccountNewMCommand) Subcommands

func (a *AccountNewMCommand) Subcommands() []string

func (*AccountNewMCommand) SupportedArguments

func (a *AccountNewMCommand) SupportedArguments() []string

func (*AccountNewMCommand) Text

func (a *AccountNewMCommand) Text() string

type AccountUseArgumentPubkey

type AccountUseArgumentPubkey struct{ *BaseArgument }

func (*AccountUseArgumentPubkey) Description

func (a *AccountUseArgumentPubkey) Description() string

func (*AccountUseArgumentPubkey) Text

func (a *AccountUseArgumentPubkey) Text() string

type AccountUseCommand

type AccountUseCommand struct{}

func (*AccountUseCommand) Description

func (a *AccountUseCommand) Description() string

func (*AccountUseCommand) Execute

func (a *AccountUseCommand) Execute(previousCmds []string, args []IArgument)

func (*AccountUseCommand) FollowedBy

func (a *AccountUseCommand) FollowedBy() []string

func (*AccountUseCommand) Subcommands

func (a *AccountUseCommand) Subcommands() []string

func (*AccountUseCommand) SupportedArguments

func (a *AccountUseCommand) SupportedArguments() []string

func (*AccountUseCommand) Text

func (a *AccountUseCommand) Text() string

type BaseArgument

type BaseArgument struct {
	// contains filtered or unexported fields
}

func (*BaseArgument) GetValue

func (a *BaseArgument) GetValue() string

func (*BaseArgument) SetValue

func (a *BaseArgument) SetValue(v string)

type BlockChainCommand

type BlockChainCommand struct{}

func (*BlockChainCommand) Description

func (a *BlockChainCommand) Description() string

func (*BlockChainCommand) Execute

func (a *BlockChainCommand) Execute(previousCmds []string, args []IArgument)

func (*BlockChainCommand) FollowedBy

func (a *BlockChainCommand) FollowedBy() []string

func (*BlockChainCommand) Subcommands

func (a *BlockChainCommand) Subcommands() []string

func (*BlockChainCommand) SupportedArguments

func (a *BlockChainCommand) SupportedArguments() []string

func (*BlockChainCommand) Text

func (a *BlockChainCommand) Text() string

type BlockChainListCommand

type BlockChainListCommand struct{}

func (*BlockChainListCommand) Description

func (a *BlockChainListCommand) Description() string

func (*BlockChainListCommand) Execute

func (a *BlockChainListCommand) Execute(previousCmds []string, args []IArgument)

func (*BlockChainListCommand) FollowedBy

func (a *BlockChainListCommand) FollowedBy() []string

func (*BlockChainListCommand) Subcommands

func (a *BlockChainListCommand) Subcommands() []string

func (*BlockChainListCommand) SupportedArguments

func (a *BlockChainListCommand) SupportedArguments() []string

func (*BlockChainListCommand) Text

func (a *BlockChainListCommand) Text() string

type BlockChainNewCommand

type BlockChainNewCommand struct{}

func (*BlockChainNewCommand) Description

func (a *BlockChainNewCommand) Description() string

func (*BlockChainNewCommand) Execute

func (a *BlockChainNewCommand) Execute(previousCmds []string, args []IArgument)

func (*BlockChainNewCommand) FollowedBy

func (a *BlockChainNewCommand) FollowedBy() []string

func (*BlockChainNewCommand) Subcommands

func (a *BlockChainNewCommand) Subcommands() []string

func (*BlockChainNewCommand) SupportedArguments

func (a *BlockChainNewCommand) SupportedArguments() []string

func (*BlockChainNewCommand) Text

func (a *BlockChainNewCommand) Text() string

type CLI

type CLI struct{}

func (*CLI) Init

func (c *CLI) Init()

type IArgument

type IArgument interface {
	ISuggest
	GetValue() string
	SetValue(v string)
}

type ICommand

type ICommand interface {
	ISuggest
	Subcommands() []string
	FollowedBy() []string
	SupportedArguments() []string
	Execute(previousCmds []string, args []IArgument)
}

type ISuggest

type ISuggest interface {
	Text() string
	Description() string
}

type MineCommand

type MineCommand struct {
}

func (*MineCommand) Description

func (a *MineCommand) Description() string

func (*MineCommand) Execute

func (a *MineCommand) Execute(previousCmds []string, args []IArgument)

func (*MineCommand) FollowedBy

func (a *MineCommand) FollowedBy() []string

func (*MineCommand) Subcommands

func (a *MineCommand) Subcommands() []string

func (*MineCommand) SupportedArguments

func (a *MineCommand) SupportedArguments() []string

func (*MineCommand) Text

func (a *MineCommand) Text() string

type StatusCommand

type StatusCommand struct{}

func (*StatusCommand) Description

func (a *StatusCommand) Description() string

func (*StatusCommand) Execute

func (a *StatusCommand) Execute(previousCmds []string, args []IArgument)

func (*StatusCommand) FollowedBy

func (a *StatusCommand) FollowedBy() []string

func (*StatusCommand) Subcommands

func (a *StatusCommand) Subcommands() []string

func (*StatusCommand) SupportedArguments

func (a *StatusCommand) SupportedArguments() []string

func (*StatusCommand) Text

func (a *StatusCommand) Text() string

type TransactionAmountArgument

type TransactionAmountArgument struct{ *BaseArgument }

func (*TransactionAmountArgument) Description

func (a *TransactionAmountArgument) Description() string

func (*TransactionAmountArgument) Text

type TransactionCommand

type TransactionCommand struct{}

func (*TransactionCommand) Description

func (a *TransactionCommand) Description() string

func (*TransactionCommand) Execute

func (a *TransactionCommand) Execute(previousCmds []string, args []IArgument)

func (*TransactionCommand) FollowedBy

func (a *TransactionCommand) FollowedBy() []string

func (*TransactionCommand) Subcommands

func (a *TransactionCommand) Subcommands() []string

func (*TransactionCommand) SupportedArguments

func (a *TransactionCommand) SupportedArguments() []string

func (*TransactionCommand) Text

func (a *TransactionCommand) Text() string

type TransactionFromArgument

type TransactionFromArgument struct{ *BaseArgument }

func (*TransactionFromArgument) Description

func (a *TransactionFromArgument) Description() string

func (*TransactionFromArgument) Text

func (a *TransactionFromArgument) Text() string

type TransactionSendCommand

type TransactionSendCommand struct{}

func (*TransactionSendCommand) Description

func (a *TransactionSendCommand) Description() string

func (*TransactionSendCommand) Execute

func (a *TransactionSendCommand) Execute(previousCmds []string, args []IArgument)

func (*TransactionSendCommand) FollowedBy

func (a *TransactionSendCommand) FollowedBy() []string

func (*TransactionSendCommand) Subcommands

func (a *TransactionSendCommand) Subcommands() []string

func (*TransactionSendCommand) SupportedArguments

func (a *TransactionSendCommand) SupportedArguments() []string

func (*TransactionSendCommand) Text

func (a *TransactionSendCommand) Text() string

type TransactionToArgument

type TransactionToArgument struct{ *BaseArgument }

func (*TransactionToArgument) Description

func (a *TransactionToArgument) Description() string

func (*TransactionToArgument) Text

func (a *TransactionToArgument) Text() string

Jump to

Keyboard shortcuts

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