cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 14 Imported by: 1

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 CreateBottleCommand

type CreateBottleCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateBottleCommand is the command line data structure for the create action of bottle

func (*CreateBottleCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateBottleCommand) Run

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

Run makes the HTTP request corresponding to the CreateBottleCommand 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 ShowBottleCommand

type ShowBottleCommand struct {
	ID          string
	PrettyPrint bool
}

ShowBottleCommand is the command line data structure for the show action of bottle

func (*ShowBottleCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowBottleCommand) Run

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

Run makes the HTTP request corresponding to the ShowBottleCommand command.

Jump to

Keyboard shortcuts

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