cli

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 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 AnalyticsShortnerCommand

type AnalyticsShortnerCommand struct {
	// Path
	Path        string
	PrettyPrint bool
}

AnalyticsShortnerCommand is the command line data structure for the analytics action of shortner

func (*AnalyticsShortnerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*AnalyticsShortnerCommand) Run

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

Run makes the HTTP request corresponding to the AnalyticsShortnerCommand command.

type CreateShortnerCommand

type CreateShortnerCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateShortnerCommand is the command line data structure for the create action of shortner

func (*CreateShortnerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateShortnerCommand) Run

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

Run makes the HTTP request corresponding to the CreateShortnerCommand command.

type DeleteShortnerCommand

type DeleteShortnerCommand struct {
	// Path
	Path        string
	PrettyPrint bool
}

DeleteShortnerCommand is the command line data structure for the delete action of shortner

func (*DeleteShortnerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteShortnerCommand) Run

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

Run makes the HTTP request corresponding to the DeleteShortnerCommand command.

type GetShortnerCommand

type GetShortnerCommand struct {
	// Path
	Path        string
	PrettyPrint bool
}

GetShortnerCommand is the command line data structure for the get action of shortner

func (*GetShortnerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetShortnerCommand) Run

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

Run makes the HTTP request corresponding to the GetShortnerCommand command.

type UpdateShortnerCommand

type UpdateShortnerCommand struct {
	Payload     string
	ContentType string
	// Path
	Path        string
	PrettyPrint bool
}

UpdateShortnerCommand is the command line data structure for the update action of shortner

func (*UpdateShortnerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateShortnerCommand) Run

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

Run makes the HTTP request corresponding to the UpdateShortnerCommand command.

Jump to

Keyboard shortcuts

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