cli

package
v0.0.0-...-a15f217 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: BSD-2-Clause Imports: 13 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 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 ShowBottleCommand

type ShowBottleCommand struct {
	Payload     string
	ContentType string
	ID          int
	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