Property | Type | Description | |
---|---|---|---|
$interactive | Whether the command is in interactive mode or not, provided by option paremeters. | ||
$verbose | Whether the verbose printing is enabled from options parameter or not. |
Method | Description | |
---|---|---|
createClassName ( string $string, string $suffix = false ) : string | Generates a class name with camelcase style and specific suffix, if not already provided | |
getGeneratorText ( string $command ) : string | Generates the LUYA text which all generator files should include. | |
getLuyaVersion ( ) : string | Get the current Luya Version | |
options ( $actionID ) | ||
selectModule ( array $options = [] ) : string | Get selection list for console commands with defined options. | |
selectModuleType ( ) : string | Get selection list of all module types. | |
verbosePrint ( string $message, string $section = null ) | Method to print informations directly when verbose is enabled. |
public getGeneratorText ( string $command ) : string | ||
$command | string | The command which is used like `crud/create` or `aw/create`. |
return | string | The text to insert. |
public getLuyaVersion ( ) : string | ||
return | string |
public selectModule ( array $options = [] ) : string | ||
$options | array | Define behavior of the module selector prompt, options are name-value pairs. The following options are available: - onlyAdmin: boolean, if enabled all not admin modules will not be included - hideCore: boolean, if enabled all core modules (from luya dev team) will be hidden. |
return | string | The name (ID) of the selected module. |
public selectModuleType ( ) : string | ||
return | string |
public verbosePrint ( string $message, string $section = null ) | ||
$message | string | |
$section | string |
public $interactive |