Command line interface
$e->Actions->mapAction(
"helloWorldCli",
new \Cherrycake\Actions\ActionCli([
"moduleType" => \Cherrycake\ACTION_MODULE_TYPE_APP,
"moduleName" => "HelloWorld",
"methodName" => "sayHi"
])
);function sayHi() {
global $e;
$e->Output->setResponse(new \Cherrycake\Actions\ResponseCli([
"payload" => "Hello World from the Cli interface"
]));
}Executing CLI Actions
Apps that both attend web requests and CLI actions
Running an app from the command line
Passing parameters to CLI actions
Last updated