cli

package
v0.0.0-...-d42fbf4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: GPL-3.0 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 ListClassCommand

type ListClassCommand struct {
	PrettyPrint bool
}

ListClassCommand is the command line data structure for the list action of class

func (*ListClassCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListClassCommand) Run

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

Run makes the HTTP request corresponding to the ListClassCommand command.

type ShowClassCommand

type ShowClassCommand struct {
	// Class ID
	ClassID     int
	PrettyPrint bool
}

ShowClassCommand is the command line data structure for the show action of class

func (*ShowClassCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowClassCommand) Run

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

Run makes the HTTP request corresponding to the ShowClassCommand command.

type ShowMembersClassCommand

type ShowMembersClassCommand struct {
	// Class ID
	ClassID     int
	PrettyPrint bool
}

ShowMembersClassCommand is the command line data structure for the show_members action of class

func (*ShowMembersClassCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowMembersClassCommand) Run

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

Run makes the HTTP request corresponding to the ShowMembersClassCommand command.

type ShowQuestionCommand

type ShowQuestionCommand struct {
	// Question ID
	QuestionID  int
	PrettyPrint bool
}

ShowQuestionCommand is the command line data structure for the show action of question

func (*ShowQuestionCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowQuestionCommand) Run

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

Run makes the HTTP request corresponding to the ShowQuestionCommand command.

type ShowQuestionsClassCommand

type ShowQuestionsClassCommand struct {
	// Class ID
	ClassID int
	// Filter by whether the question has been answered by the member
	Answered string
	// Filter by author
	AuthorID int
	// Filter by question type
	QuestionType string
	// Filter by unit
	UnitID      int
	PrettyPrint bool
}

ShowQuestionsClassCommand is the command line data structure for the show_questions action of class

func (*ShowQuestionsClassCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowQuestionsClassCommand) Run

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

Run makes the HTTP request corresponding to the ShowQuestionsClassCommand command.

Jump to

Keyboard shortcuts

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