[TYPO3-team-core-v5] CLI support for controllers in sub-packages
Karsten Dambekalns
karsten at typo3.org
Tue Sep 23 16:35:57 CEST 2008
Hi.
I brainstormed together with Andreas in a little chat session. Here's
the result.
-----
The general syntax is
php index.php <command> [<options>] [--] [<arguments>]
<command> is mandatory, <options> and <arguments> are optional.
It follows what is commonly accpeted on unixoid systems for CLI programs.
<command> is defined as
<package> [<sub1..N>] [<controller>] [<action>]
First part is always the package, then last two are always controller
and action. if anything is in between, that are sub packages. Example:
typo3cr admin setup default
would call the "setup" controller's "default" action in the subpackage
"admin" of the package "TYPO3CR"
The package key may be used alone, then the default controller and
action are assumed.
[options] are either short- or long-style
-a HURZ --b BLAH
[arguments] can follow and will be handed over to the called controller.
To distinguish between [command] and [arguments] in cases where no
[options] are given, the seperator "--" must be used. If options are
used, it is optional.
-----
What do you think?
Regards,
Karsten
More information about the TYPO3-team-core-v5
mailing list