Documentation ¶
Index ¶
- func RegisterCommands(app *cobra.Command, c *client.Client)
- type CreateCourseCommand
- type CreateRegistrationCommand
- type DeleteCourseCommand
- type DownloadCommand
- type ListCourseCommand
- type ListRegistrationCommand
- type LoginSessionCommand
- type PatchCourseCommand
- type PatchRegistrationCommand
- type ShowCourseCommand
- type ShowRegistrationCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateCourseCommand ¶
CreateCourseCommand is the command line data structure for the create action of course
func (*CreateCourseCommand) RegisterFlags ¶
func (cmd *CreateCourseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateRegistrationCommand ¶
CreateRegistrationCommand is the command line data structure for the create action of registration
func (*CreateRegistrationCommand) RegisterFlags ¶
func (cmd *CreateRegistrationCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteCourseCommand ¶
DeleteCourseCommand is the command line data structure for the delete action of course
func (*DeleteCourseCommand) RegisterFlags ¶
func (cmd *DeleteCourseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
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.
type ListCourseCommand ¶
ListCourseCommand is the command line data structure for the list action of course
func (*ListCourseCommand) RegisterFlags ¶
func (cmd *ListCourseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListRegistrationCommand ¶
ListRegistrationCommand is the command line data structure for the list action of registration
func (*ListRegistrationCommand) RegisterFlags ¶
func (cmd *ListRegistrationCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type LoginSessionCommand ¶
type LoginSessionCommand struct {
PrettyPrint bool
}
LoginSessionCommand is the command line data structure for the login action of session
func (*LoginSessionCommand) RegisterFlags ¶
func (cmd *LoginSessionCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type PatchCourseCommand ¶
type PatchCourseCommand struct { Payload string ContentType string // The course ID ID int PrettyPrint bool }
PatchCourseCommand is the command line data structure for the patch action of course
func (*PatchCourseCommand) RegisterFlags ¶
func (cmd *PatchCourseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type PatchRegistrationCommand ¶
type PatchRegistrationCommand struct { Payload string ContentType string // The registration ID ID int PrettyPrint bool }
PatchRegistrationCommand is the command line data structure for the patch action of registration
func (*PatchRegistrationCommand) RegisterFlags ¶
func (cmd *PatchRegistrationCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowCourseCommand ¶
ShowCourseCommand is the command line data structure for the show action of course
func (*ShowCourseCommand) RegisterFlags ¶
func (cmd *ShowCourseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowRegistrationCommand ¶
type ShowRegistrationCommand struct { // The registration ID ID int // The view used to render the registration View string PrettyPrint bool }
ShowRegistrationCommand is the command line data structure for the show action of registration
func (*ShowRegistrationCommand) RegisterFlags ¶
func (cmd *ShowRegistrationCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.