cli

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: GPL-3.0 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 CreateFeedCommand

type CreateFeedCommand struct {
	// Comma separated list of tags
	Tags string
	// Feed title (will overide official feed title)
	Title string
	// Feed URL
	URL         string
	PrettyPrint bool
}

CreateFeedCommand is the command line data structure for the create action of feed

func (*CreateFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateFeedCommand) Run

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

Run makes the HTTP request corresponding to the CreateFeedCommand command.

type CreateFilterCommand

type CreateFilterCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateFilterCommand is the command line data structure for the create action of filter

func (*CreateFilterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateFilterCommand) Run

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

Run makes the HTTP request corresponding to the CreateFilterCommand command.

type CreateOutputCommand

type CreateOutputCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateOutputCommand is the command line data structure for the create action of output

func (*CreateOutputCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateOutputCommand) Run

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

Run makes the HTTP request corresponding to the CreateOutputCommand command.

type DeleteFeedCommand

type DeleteFeedCommand struct {
	// Feed ID
	ID          string
	PrettyPrint bool
}

DeleteFeedCommand is the command line data structure for the delete action of feed

func (*DeleteFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteFeedCommand) Run

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

Run makes the HTTP request corresponding to the DeleteFeedCommand command.

type DeleteFilterCommand

type DeleteFilterCommand struct {
	// Filter ID
	ID          int
	PrettyPrint bool
}

DeleteFilterCommand is the command line data structure for the delete action of filter

func (*DeleteFilterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteFilterCommand) Run

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

Run makes the HTTP request corresponding to the DeleteFilterCommand command.

type DeleteOutputCommand

type DeleteOutputCommand struct {
	// Output ID
	ID          int
	PrettyPrint bool
}

DeleteOutputCommand is the command line data structure for the delete action of output

func (*DeleteOutputCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DeleteOutputCommand) Run

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

Run makes the HTTP request corresponding to the DeleteOutputCommand command.

type GetFeedCommand

type GetFeedCommand struct {
	// Feed ID
	ID          string
	PrettyPrint bool
}

GetFeedCommand is the command line data structure for the get action of feed

func (*GetFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetFeedCommand) Run

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

Run makes the HTTP request corresponding to the GetFeedCommand command.

type GetFilterCommand

type GetFilterCommand struct {
	// Filter ID
	ID          int
	PrettyPrint bool
}

GetFilterCommand is the command line data structure for the get action of filter

func (*GetFilterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetFilterCommand) Run

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

Run makes the HTTP request corresponding to the GetFilterCommand command.

type GetHealthCommand

type GetHealthCommand struct {
	PrettyPrint bool
}

GetHealthCommand is the command line data structure for the get action of health

func (*GetHealthCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetHealthCommand) Run

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

Run makes the HTTP request corresponding to the GetHealthCommand command.

type GetIndexCommand

type GetIndexCommand struct {
	PrettyPrint bool
}

GetIndexCommand is the command line data structure for the get action of index

func (*GetIndexCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetIndexCommand) Run

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

Run makes the HTTP request corresponding to the GetIndexCommand command.

type GetOpmlCommand

type GetOpmlCommand struct {
	PrettyPrint bool
}

GetOpmlCommand is the command line data structure for the get action of opml

func (*GetOpmlCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetOpmlCommand) Run

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

Run makes the HTTP request corresponding to the GetOpmlCommand command.

type GetOutputCommand

type GetOutputCommand struct {
	// Output ID
	ID          int
	PrettyPrint bool
}

GetOutputCommand is the command line data structure for the get action of output

func (*GetOutputCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetOutputCommand) Run

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

Run makes the HTTP request corresponding to the GetOutputCommand command.

type GetSwaggerCommand

type GetSwaggerCommand struct {
	PrettyPrint bool
}

GetSwaggerCommand is the command line data structure for the get action of swagger

func (*GetSwaggerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetSwaggerCommand) Run

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

Run makes the HTTP request corresponding to the GetSwaggerCommand command.

type GetVarsCommand

type GetVarsCommand struct {
	PrettyPrint bool
}

GetVarsCommand is the command line data structure for the get action of vars

func (*GetVarsCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetVarsCommand) Run

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

Run makes the HTTP request corresponding to the GetVarsCommand command.

type ListFeedCommand

type ListFeedCommand struct {
	// Fetch limit
	Limit int
	// Page to fetch
	Page        int
	PrettyPrint bool
}

ListFeedCommand is the command line data structure for the list action of feed

func (*ListFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListFeedCommand) Run

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

Run makes the HTTP request corresponding to the ListFeedCommand command.

type ListFilterCommand

type ListFilterCommand struct {
	PrettyPrint bool
}

ListFilterCommand is the command line data structure for the list action of filter

func (*ListFilterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListFilterCommand) Run

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

Run makes the HTTP request corresponding to the ListFilterCommand command.

type ListOutputCommand

type ListOutputCommand struct {
	PrettyPrint bool
}

ListOutputCommand is the command line data structure for the list action of output

func (*ListOutputCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListOutputCommand) Run

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

Run makes the HTTP request corresponding to the ListOutputCommand command.

type PubPshbCommand

type PubPshbCommand struct {
	PrettyPrint bool
}

PubPshbCommand is the command line data structure for the pub action of pshb

func (*PubPshbCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*PubPshbCommand) Run

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

Run makes the HTTP request corresponding to the PubPshbCommand command.

type SpecsFilterCommand

type SpecsFilterCommand struct {
	PrettyPrint bool
}

SpecsFilterCommand is the command line data structure for the specs action of filter

func (*SpecsFilterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SpecsFilterCommand) Run

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

Run makes the HTTP request corresponding to the SpecsFilterCommand command.

type SpecsOutputCommand

type SpecsOutputCommand struct {
	PrettyPrint bool
}

SpecsOutputCommand is the command line data structure for the specs action of output

func (*SpecsOutputCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SpecsOutputCommand) Run

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

Run makes the HTTP request corresponding to the SpecsOutputCommand command.

type StartFeedCommand

type StartFeedCommand struct {
	ID          string
	PrettyPrint bool
}

StartFeedCommand is the command line data structure for the start action of feed

func (*StartFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*StartFeedCommand) Run

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

Run makes the HTTP request corresponding to the StartFeedCommand command.

type StopFeedCommand

type StopFeedCommand struct {
	ID          string
	PrettyPrint bool
}

StopFeedCommand is the command line data structure for the stop action of feed

func (*StopFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*StopFeedCommand) Run

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

Run makes the HTTP request corresponding to the StopFeedCommand command.

type SubPshbCommand

type SubPshbCommand struct {
	// A hub-generated random string
	HubChallenge string
	// The hub-determined number of seconds that the subscription will stay active before expiring
	HubLeaseSeconds int
	// The literal string "subscribe" or "unsubscribe"
	HubMode string
	// The topic URL given in the corresponding subscription request
	HubTopic    string
	PrettyPrint bool
}

SubPshbCommand is the command line data structure for the sub action of pshb

func (*SubPshbCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SubPshbCommand) Run

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

Run makes the HTTP request corresponding to the SubPshbCommand command.

type UpdateFeedCommand

type UpdateFeedCommand struct {
	// Feed ID
	ID string
	// Comma separated list of tags
	Tags string
	// Feed title
	Title       string
	PrettyPrint bool
}

UpdateFeedCommand is the command line data structure for the update action of feed

func (*UpdateFeedCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateFeedCommand) Run

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

Run makes the HTTP request corresponding to the UpdateFeedCommand command.

type UpdateFilterCommand

type UpdateFilterCommand struct {
	Payload     string
	ContentType string
	// Filter ID
	ID          int
	PrettyPrint bool
}

UpdateFilterCommand is the command line data structure for the update action of filter

func (*UpdateFilterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateFilterCommand) Run

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

Run makes the HTTP request corresponding to the UpdateFilterCommand command.

type UpdateOutputCommand

type UpdateOutputCommand struct {
	Payload     string
	ContentType string
	// Output ID
	ID          int
	PrettyPrint bool
}

UpdateOutputCommand is the command line data structure for the update action of output

func (*UpdateOutputCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateOutputCommand) Run

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

Run makes the HTTP request corresponding to the UpdateOutputCommand command.

type UploadOpmlCommand

type UploadOpmlCommand struct {
	PrettyPrint bool
}

UploadOpmlCommand is the command line data structure for the upload action of opml

func (*UploadOpmlCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UploadOpmlCommand) Run

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

Run makes the HTTP request corresponding to the UploadOpmlCommand command.

Jump to

Keyboard shortcuts

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