cli

package
v0.0.0-...-a2b2d1c Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: MIT Imports: 14 Imported by: 2

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 CreateSuggestionCommand

type CreateSuggestionCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateSuggestionCommand is the command line data structure for the create action of suggestion

func (*CreateSuggestionCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateSuggestionCommand) Run

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

Run makes the HTTP request corresponding to the CreateSuggestionCommand 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 ListSuggestionCommand

type ListSuggestionCommand struct {
	ShowID      string
	PrettyPrint bool
}

ListSuggestionCommand is the command line data structure for the list action of suggestion

func (*ListSuggestionCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListSuggestionCommand) Run

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

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