cli

package
v0.0.0-...-722e3b2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 14 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 CreateQuoteCommand

type CreateQuoteCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateQuoteCommand is the command line data structure for the create action of quote

func (*CreateQuoteCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateQuoteCommand) Run

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

Run makes the HTTP request corresponding to the CreateQuoteCommand command.

type ListByIDQuoteCommand

type ListByIDQuoteCommand struct {
	// User ID
	UserID      string
	PrettyPrint bool
}

ListByIDQuoteCommand is the command line data structure for the list by ID action of quote

func (*ListByIDQuoteCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListByIDQuoteCommand) Run

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

Run makes the HTTP request corresponding to the ListByIDQuoteCommand command.

type ListQuoteCommand

type ListQuoteCommand struct {
	PrettyPrint bool
}

ListQuoteCommand is the command line data structure for the list action of quote

func (*ListQuoteCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListQuoteCommand) Run

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

Run makes the HTTP request corresponding to the ListQuoteCommand command.

type LoginQuoteCommand

type LoginQuoteCommand struct {
	PrettyPrint bool
}

LoginQuoteCommand is the command line data structure for the login action of quote

func (*LoginQuoteCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*LoginQuoteCommand) Run

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

Run makes the HTTP request corresponding to the LoginQuoteCommand command.

Jump to

Keyboard shortcuts

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