agence-adeliom / lumberjack-cli
Requires
- php: ^7.1|^8.0
- blast/facades: ^1.0
- icanboogie/inflector: ^2.0
- jawira/case-converter: ^3.4
- rareloop/lumberjack-core: *
- symfony/console: ^5.4
Requires (Dev)
- orchestra/testbench: ^5.0
- phpunit/phpunit: ^8.0
- dev-master
- 1.1.7
- 1.1.6
- 1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/npm_and_yarn/cacheable-request-and-release-it/bumper-and-release-it/conventional-changelog-and-release-it-10.2.7
- dev-dependabot/npm_and_yarn/http-cache-semantics-4.1.1
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-develop
This package is auto-updated.
Last update: 2024-12-12 07:41:02 UTC
README
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Installation
You can install the package via composer:
composer require agence-adeliom/lumberjack-cli
Once installed you need to copy the console
file into your Lumberjack theme directory.
It is assuming you're using Lumberjack inside Bedrock. If not, you may need to make some changes to paths in the console
file
Basic Usage
You can now access the Adeliom CLI from inside your Lumberjack theme directory:
Available commands
help Displays help for a command
list Lists commands
make
make:admin Create a Admin
make:ajax Create a Ajax Action
make:controller Create a Controller
make:cron Create a Cron Job
make:env Create a environement
make:event Create a Event Listener
make:exception Create a Exception
make:flex-layout Create a FlexibleLayout
make:form Create a Form
make:hook Create a Hooks Class
make:posttype Create a PostType
make:provider Create a ServiceProvider
make:taxonomy Create a Taxonomy
make:viewmodel Create a ViewModel
route
route:list List all registered routes
To show available commands
php console list
To run a command
For a given command called test:command
you would run the following:
php console test:command
Get additional help about a command
For a given command called test:command
you would run the following:
php console help test:command
Adding Commands
To add additional commands to Adeliom CLI add them to config/commands.php
(create the file if it doesn't exist).
// config/commands.php return [ 'commands' => [ MyCommand::class, ], ];
Writing Commands
Create a subclass of Adeliom\WP\CLI\Commands\Command
:
namespace MyNamespace; use Adeliom\WP\CLI\Commands\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ControllerMake extends Command { protected $signature = 'test:command {paramName : The description of the parameter}'; protected $description = 'A description of the command'; protected function execute(InputInterface $input, OutputInterface $output) { // Command implementation } }
Adeliom CLI uses the same $signature
syntax as Laravel, see here for more information.
Adeliom CLI Command
is a subclass of Symfony's Command
object, for more information on how to implement the execute()
function see here.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.