https://github.com/mressex/cubex-cli
An Artisan inspired Cubex Console Wrapper
https://github.com/mressex/cubex-cli
console cubex php
Last synced: 3 months ago
JSON representation
An Artisan inspired Cubex Console Wrapper
- Host: GitHub
- URL: https://github.com/mressex/cubex-cli
- Owner: MrEssex
- Created: 2022-09-30T12:38:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-30T12:45:08.000Z (over 2 years ago)
- Last Synced: 2025-02-22T20:36:17.285Z (4 months ago)
- Topics: console, cubex, php
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Cubex Cli
## Installation
1. Run ```composer require MrEssex/Cubex-Cli```
2. 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```