Sake
class Sake extends Application (View source)
CLI application for running commands against a Silverstripe CMS project Boots up a full kernel, using the same configuration and database the web server uses.
Traits
Provides extensions to this object to integrate it with standard config API methods.
Config options
commands | Command[] | Commands that can be run. These commands will be instantiated via the Injector. |
|
command_loaders | CommandLoaderInterface[] | Command loaders for dynamically adding commands to sake. |
|
max_tasks_to_display | int | Maximum number of tasks to display in the main command list. |
|
hide_completion_command | bool | Set this to true to hide the "completion" command. |
Properties
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
No description
Check whether tasks should currently be hidden from the main command list
No description
Details
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
__construct(Kernel|null $kernel = null)
No description
string
getVersion()
No description
int
run(InputInterface|null $input = null, OutputInterface|null $output = null)
No description
array
all(string|null $namespace = null)
No description
bool
shouldHideTasks()
Check whether tasks should currently be hidden from the main command list
void
setIgnoreTaskLimit(bool $ignore)
Set whether the task limit should be ignored.
Used by the tasks command and completion to allow listing tasks when there's too many of them to list in the main command list.
void
complete(CompletionInput $input, CompletionSuggestions $suggestions)
No description
protected int
doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
No description
protected InputDefinition
getDefaultInputDefinition()
No description
protected array
getDefaultCommands()
No description