cli

package
v0.0.0-...-37f29b7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 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 CreateHeroCommand

type CreateHeroCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateHeroCommand is the command line data structure for the create action of hero

func (*CreateHeroCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateHeroCommand) Run

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

Run makes the HTTP request corresponding to the CreateHeroCommand command.

type ListHeroCommand

type ListHeroCommand struct {
	PrettyPrint bool
}

ListHeroCommand is the command line data structure for the list action of hero

func (*ListHeroCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListHeroCommand) Run

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

Run makes the HTTP request corresponding to the ListHeroCommand command.

type ShowHeroCommand

type ShowHeroCommand struct {
	// Bottle ID
	HeroID      int
	PrettyPrint bool
}

ShowHeroCommand is the command line data structure for the show action of hero

func (*ShowHeroCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowHeroCommand) Run

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

Run makes the HTTP request corresponding to the ShowHeroCommand command.

Jump to

Keyboard shortcuts

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