Documentation ¶
Index ¶
Constants ¶
View Source
const ( ImageName = "image" ImageUsage = "Specify here the filepath to the image that you want to upload" ImageDefault = utils.Empty TitleName = "title" TitleUsage = "Specify here the title of the course. It may contain spaces. Mandatory" TitleDefault = utils.Empty LanguageName = "language" LanguageUsage = "Specify the code of the language. It must be in two letter format. Mandatory" LanguageDefault = utils.Empty DescriptionName = "description" DescriptionUsage = "Specify here a description. It's optional. Max lenght must be 200 characters" DescriptionDefault = utils.Empty SourceURLName = "source-url" SourceURLUsage = "Specify the source URL of the course if appropiate" SourceURLDefault = utils.Empty TagsName = "tags" TagsUsage = "Specify zero or more tags to classify the course. By default, empty" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CourseRequest ¶
type CourseRequest struct { Image string Title string Language string Description string Level entities.ResourceLevel SourceURL string Tags []string }
func (*CourseRequest) Args ¶
func (c *CourseRequest) Args(cmd *cobra.Command)
func (CourseRequest) ToCommand ¶
func (c CourseRequest) ToCommand() any
Click to show internal directories.
Click to hide internal directories.