Documentation ¶
Index ¶
- Variables
- func AskPassword(question string) (password string, err error)
- func AskYes(question string, defaultYes bool) (isYes bool)
- func DefaultIfEmptyStr(s *string, defaultS string)
- func Execute(v string)
- func IsAddress(a string) bool
- func IsBytecode(a string) bool
- func IsEmptyStr(s string) bool
- func IsEqStr(a, b string) bool
- func IsTransaction(a string) bool
Constants ¶
This section is empty.
Variables ¶
var NewAeNode = func() *aeternity.Node { return aeternity.NewNode(aeternity.Config.Node.URL, debug) }
NewAeNode is just a helper function that gives you a Node so that you don't have to maintain a Node global variable (which needs the config vars to be read immediately, with this helper function you can defer the reading of the variables until the subcommand's execution) Defined as a var so unittests can mock this function out.
var NewCompiler = func() *aeternity.Compiler { return aeternity.NewCompiler(compilerURL, debug) }
NewCompiler is just a helper function that gives you a Compiler so that you don't have to maintain a Compiler global variable (which needs the config vars to be read immediately, with this helper function you can defer the reading of the variables until the subcommand's execution) Defined as a var so unittests can mock this function out.
var RootCmd = &cobra.Command{
Use: "aecli",
Short: "The command line client for the Aeternity blockchain",
Long: ``,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func AskPassword ¶
AskPassword ask a password
func DefaultIfEmptyStr ¶
DefaultIfEmptyStr set a default for a string if it is nulled
func Execute ¶
func Execute(v string)
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func IsBytecode ¶
IsBytecode does some minor checks to ensure that the string is a cb_ bytecode
func IsEqStr ¶
IsEqStr tells if two strings a and b are equals after trimming spaces and lowercasing
func IsTransaction ¶
IsTransaction does some minor checks to ensure that the string is a tx_ transaction
Types ¶
This section is empty.