address

package
v0.0.0-...-8b9e895 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCmd = &cobra.Command{
	Use:   "add [ADDRESS]",
	Short: "Add a new address to watchlist",
	Args:  cobra.ExactArgs(1),
	Run:   addCmd,
}

AddCmd is the `flexpool-cli addr add` command

View Source
var AddressCmd = &cobra.Command{
	Use:   "addr [OPTIONS]",
	Short: "Address management",
}

AddressCmd is the `flexpool-cli addr` command

View Source
var ListCmd = &cobra.Command{
	Use:   "ls",
	Short: "List all watched addresses",
	Args:  cobra.NoArgs,
	Run:   listCmd,
}

ListCmd is the `flexpool-cli addr ls` command

View Source
var RemoveCmd = &cobra.Command{
	Use:   "rm [ADDRESS]",
	Short: "Remove address from watchlist",
	Args:  cobra.MinimumNArgs(1),
	Run:   removeCmd,
}

RemoveCmd is the `flexpool-cli addr rm` command

Functions

func GetAddresses

func GetAddresses() []string

GetAddresses gets the config addresses

func Init

func Init()

Init initializes the CLI command

Types

This section is empty.

Jump to

Keyboard shortcuts

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