minicli / command-help
A help command for Minicli
Installs: 3 747
Dependents: 10
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- minicli/minicli: ^4.0
Requires (Dev)
- laravel/pint: ^1.10
- pestphp/pest: ^2.6
This package is auto-updated.
Last update: 2024-11-07 17:17:27 UTC
README
Default help command. This will auto-generate a command/sub-command tree based on all commands registered within the CommandRegistry, and print it to users that call './minicli help'.
Usage
First, import this command with Composer:
composer require minicli/command-help
Then, edit your app's config to include @minicli/command-help
within your app_path
definitions. For instance:
$app = new App([ 'app_path' => [ __DIR__ . '/app/Command', '@minicli/command-help' ], 'debug' => true ]);
You should now be able to run the ./minicli help
command and obtain output that will vary depending on your own implemented commands. Here is an example:
Available Commands
help
└──table
└──test