cli

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagValue is a flag name for defining a value.
	FlagValue = "value"

	// FlagFile is a flag name for defining a file.
	FlagFile = "file"

	// FlagDelete is a flag name for deleting something.
	FlagDelete = "delete"

	// AccountDataFlagsUse is a use string for the mutually exclusive account data flags.
	AccountDataFlagsUse = "{" + flagValueUse + "|" + flagFileUse + "|" + flagDeleteUse + "}"
)

Variables

This section is empty.

Functions

func AddAccountDataFlagsToCmd added in v1.16.0

func AddAccountDataFlagsToCmd(cmd *cobra.Command)

AddAccountDataFlagsToCmd adds flags to a command for providing account data. See also: ReadAccountDataFlags

func GetAccountAttributeCmd

func GetAccountAttributeCmd() *cobra.Command

GetAccountAttributeCmd gets all account attributes by name.

func GetAccountDataCmd added in v1.16.0

func GetAccountDataCmd() *cobra.Command

GetAccountDataCmd gets data for an account

func GetAttributeAccountsCmd added in v1.15.0

func GetAttributeAccountsCmd() *cobra.Command

GetAttributeAccountsCmd gets account addresses with attribute name

func GetAttributeParamsCmd

func GetAttributeParamsCmd() *cobra.Command

GetAttributeParamsCmd returns the command handler for name parameter querying.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd is the top-level command for attribute CLI queries.

func ListAccountAttributesCmd

func ListAccountAttributesCmd() *cobra.Command

ListAccountAttributesCmd gets all account attributes.

func NewAddAccountAttributeCmd

func NewAddAccountAttributeCmd() *cobra.Command

NewAddAccountAttributeCmd creates a command for adding an account attributes.

func NewDeleteAccountAttributeCmd

func NewDeleteAccountAttributeCmd() *cobra.Command

NewDeleteAccountAttributeCmd creates a command for removing account attributes.

func NewDeleteDistinctAccountAttributeCmd added in v1.5.0

func NewDeleteDistinctAccountAttributeCmd() *cobra.Command

NewDeleteDistinctAccountAttributeCmd creates a command for removing account attributes with specific name value.

func NewSetAccountDataCmd added in v1.16.0

func NewSetAccountDataCmd() *cobra.Command

NewSetAccountDataCmd creates a command for setting account data.

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd is the top-level command for attribute CLI transactions.

func NewUpdateAccountAttributeCmd added in v1.5.0

func NewUpdateAccountAttributeCmd() *cobra.Command

NewUpdateAccountAttributeCmd creates a command for adding an account attributes.

func NewUpdateAccountAttributeExpirationCmd added in v1.16.0

func NewUpdateAccountAttributeExpirationCmd() *cobra.Command

NewUpdateAccountAttributeExpirationCmd creates a command for updating account attributes expirations

func ReadAccountDataFlags added in v1.16.0

func ReadAccountDataFlags(flagSet *flag.FlagSet) (string, error)

ReadAccountDataFlags parses the account data flags and returns the desired account data value. See also: AddAccountDataFlagsToCmd

func ScanAccountAttributesCmd

func ScanAccountAttributesCmd() *cobra.Command

ScanAccountAttributesCmd gets account attributes by name suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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