mressex / cubex-cli
Installs: 1 447
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-json: *
- cubex/framework: ^4.18
Requires (Dev)
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-11-29 06:23:22 UTC
README
Installation
- Run
composer require MrEssex/Cubex-Cli
- Run
./vendor/mressex/cubex-cli/cubex init
. This command creates a sample cubex file in your root directory.
Usage
- Run
cubex make:console command-name
to create a new command. - When you create a new command, it will have {PSR-4-Namespace}\Cli namespace. For example, if you
run
cubex make:console Example
, you will get {PSR-4-Namespace}\Cli\Example as a fully qualified class name. - Run
cubex list
to confirm.
or add CliWrapper::initialise($app);
, where $app
is an instance of cubex,
to your cubex file in the root directory
Registering Alternative CLI Vendors
- Qdd
CliWrapper::initialiseAlternativeRoot($app, {path});
, where$app
is an instance of cubex, to your cubex file in the root directory and{path}
is the namespace/path inside vendor of the package e.g.mressex/cubex-translate