cmd

package
v0.0.0-...-1f897c4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PingCmd = &cobra.Command{
	Use:   "get_zonefiles_by_block [startBlock] [endBlock] [offset] [count]",
	Short: "[startBlock] [endBlock] [offset] [count]",
	Args:  cobra.ExactArgs(4),
	Run: func(cmd *cobra.Command, args []string) {
		client := getClient()
		res, err := client.GetZonefilesByBlock(
			validateIntArg(args[0], "startBlock"),
			validateIntArg(args[1], "endBlock"),
			validateIntArg(args[2], "offset"),
			validateIntArg(args[3], "count"),
		)
		handleResult(res, err)
	},
}

PingCmd represents the Ping command

View Source
var RootCmd = &cobra.Command{
	Use:   "blockstack",
	Short: "An RPC call runner for blockstackd",
}

RootCmd is the root command of the CLI

Functions

func Execute

func Execute()

Execute runs the rest of the commands

Types

This section is empty.

Jump to

Keyboard shortcuts

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