cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

Types

type ResolveResolveCommand

type ResolveResolveCommand struct {
	// Hostname to resolve
	Hostname    string
	PrettyPrint bool
}

ResolveResolveCommand is the command line data structure for the resolve action of resolve

func (*ResolveResolveCommand) RegisterFlags

func (cmd *ResolveResolveCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ResolveResolveCommand) Run

func (cmd *ResolveResolveCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ResolveResolveCommand command.

Jump to

Keyboard shortcuts

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