cli

package
v0.0.0-...-cad71b5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 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 DeleteRatingCommand

type DeleteRatingCommand struct {
	MovieID     int
	UserID      int
	PrettyPrint bool
}

DeleteRatingCommand is the command line data structure for the delete action of rating

func (*DeleteRatingCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteRatingCommand) Run

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

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

type HealthHealthCommand struct {
	PrettyPrint bool
}

HealthHealthCommand is the command line data structure for the health action of health

func (*HealthHealthCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*HealthHealthCommand) Run

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

Run makes the HTTP request corresponding to the HealthHealthCommand command.

type ReadRatingCommand

type ReadRatingCommand struct {
	MovieID     int
	UserID      int
	PrettyPrint bool
}

ReadRatingCommand is the command line data structure for the read action of rating

func (*ReadRatingCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ReadRatingCommand) Run

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

Run makes the HTTP request corresponding to the ReadRatingCommand command.

type UpsertRatingCommand

type UpsertRatingCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

UpsertRatingCommand is the command line data structure for the upsert action of rating

func (*UpsertRatingCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpsertRatingCommand) Run

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

Run makes the HTTP request corresponding to the UpsertRatingCommand command.

Jump to

Keyboard shortcuts

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