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
- func Pp(data ...interface{})
- func PpI(indentSize int, data ...interface{})
- func PpT(indentSize int, title string)
- func PrintGenerationByHeight(c getGenerationMicroBlockTransactioner, height uint64)
- func PrintObject(title string, i interface{})
Constants ¶
This section is empty.
Variables ¶
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
func PrintGenerationByHeight ¶
func PrintGenerationByHeight(c getGenerationMicroBlockTransactioner, height uint64)
PrintGenerationByHeight utility function to print a generation by it's height TODO needs to be tested with error cases
func PrintObject ¶
func PrintObject(title string, i interface{})
PrintObject pretty print an object obtained from the api with a title
Types ¶
This section is empty.