Options
All
  • Public
  • Public/Protected
  • All
Menu

Generator for scos

Hierarchy

Index

Constructors

constructor

Properties

Static Protected ERROR_COURSE_FOLDER_DOESNT_EXISTS

ERROR_COURSE_FOLDER_DOESNT_EXISTS: "Please, initialize an course with 'yo haztivity' before use the sco generator" = "Please, initialize an course with 'yo haztivity' before use the sco generator"

Error message for course required

type

{string}

Static Protected ERROR_REQUIRED

ERROR_REQUIRED: "This field is required" = "This field is required"

Common message for required files

type

{string}

Static Protected ERROR_SCO_EXISTS

ERROR_SCO_EXISTS: "The SCO indicated already exists. Please, choose another name" = "The SCO indicated already exists. Please, choose another name"

Error message for existing sco

type

{string}

Static Protected ERROR_SPECIAL_CHARACTER

ERROR_SPECIAL_CHARACTER: "This field only could contains [a-zA-Z0-9_] characters, without spaces or special characters" = "This field only could contains [a-zA-Z0-9_] characters, without spaces or special characters"

Common message for special characters

type

{string}

Static Protected options

options: object

Shared options for all the generators

type

{{}}

Type declaration

Methods

Private _addToConfig

  • _addToConfig(config: any): void

Private _getAllOptions

  • _getAllOptions(): object

Private _getOption

  • _getOption(key: any): any

Private _setOption

  • _setOption(key: any, value: any): void

Private _validateNonEmpty

  • _validateNonEmpty(toValidate: any): boolean

Private _validateScoExists

  • _validateScoExists(id: any): boolean

Private _validateSpecial

  • _validateSpecial(toValidate: any): boolean

initialize

  • initialize(): void

prompting

  • prompting(): void

writing

  • writing(): void

Generated using TypeDoc