cli

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT 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 ShowBottleCommand

type ShowBottleCommand struct {
	// Bottle ID
	BottleID    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