cli

package
v0.0.0-...-2469c04 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 15 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 CreatePurchaseCommand

type CreatePurchaseCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreatePurchaseCommand is the command line data structure for the create action of Purchase

func (*CreatePurchaseCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreatePurchaseCommand) Run

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

Run makes the HTTP request corresponding to the CreatePurchaseCommand command.

type DownloadCommand

type DownloadCommand struct {
	// OutFile is the path to the download output file.
	OutFile string
}

DownloadCommand is the command line data structure for the download command.

func (*DownloadCommand) Run

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

Run downloads files with given paths.

type ShowPurchaseCommand

type ShowPurchaseCommand struct {
	// Unique transaction identifier
	TransactionID string
	PrettyPrint   bool
}

ShowPurchaseCommand is the command line data structure for the show action of Purchase

func (*ShowPurchaseCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowPurchaseCommand) Run

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

Run makes the HTTP request corresponding to the ShowPurchaseCommand command.

Jump to

Keyboard shortcuts

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