cli

package
v0.0.0-...-eecba0e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2017 License: MIT 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 CreateUserCommand

type CreateUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateUserCommand is the command line data structure for the create action of user

func (*CreateUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateUserCommand) Run

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

Run makes the HTTP request corresponding to the CreateUserCommand 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 IndexUserCommand

type IndexUserCommand struct {
	PrettyPrint bool
}

IndexUserCommand is the command line data structure for the index action of user

func (*IndexUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*IndexUserCommand) Run

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

Run makes the HTTP request corresponding to the IndexUserCommand command.

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.

type ShowUserCommand

type ShowUserCommand struct {
	// User ID
	UserID      int
	PrettyPrint bool
}

ShowUserCommand is the command line data structure for the show action of user

func (*ShowUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowUserCommand) Run

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

Run makes the HTTP request corresponding to the ShowUserCommand command.

type UpdateUserCommand

type UpdateUserCommand struct {
	Payload     string
	ContentType string
	// User ID
	UserID      int
	PrettyPrint bool
}

UpdateUserCommand is the command line data structure for the update action of user

func (*UpdateUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateUserCommand) Run

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

Run makes the HTTP request corresponding to the UpdateUserCommand command.

Jump to

Keyboard shortcuts

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