Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateERC20Cmd ¶
func CreateERC20Cmd(client *CommandLineClient) *cobra.Command
CreateERC20Cmd creates rootcommand for ERC20 and adds a subcommand if rootcommand executed the user will also see the output of the syncing status of ethereum
Types ¶
type CommandLineClient ¶
type CommandLineClient struct { *api.HTTPClient Config *client.Config RootCmd *cobra.Command ERC20Cmd *cobra.Command TFChainCmd *cobra.Command PreRunE func(*client.Config) (*client.Config, error) }
CommandLineClient specific for bridge client
func NewCommandLineClient ¶
func NewCommandLineClient(address, name, userAgent string) (*CommandLineClient, error)
NewCommandLineClient creates a new CLI client, which can be run as it is, or be extended/modified to fit your needs.
func (*CommandLineClient) Run ¶
func (cli *CommandLineClient) Run() error
Run the CLI, logic dependend upon the command the user used.
Click to show internal directories.
Click to hide internal directories.