tacman / castor-tools
Extend castor with some common tools
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:castor-plugin
pkg:composer/tacman/castor-tools
Requires (Dev)
- jolicode/castor: ^1.0
README
This repository contains functions and tasks I use during developing Symfony applications and using Castor.
Installation
To install the package, you can use the following command:
castor composer require tacman/castor-tools
Import
Now import the tasks in your castor.php file:
<?php use Castor\Attribute\AsTask; use function Castor\{import, io, fs, capture, run}; import('.castor/vendor/tacman/castor-tools/castor.php');
In action
castor
✔ Remote packages imported
▄████▄ ▄▄▄ ██████ ▄▄▄█████▓ ▒█████ ██▀███
▒██▀ ▀█ ▒████▄ ▒██ ▒ ▓ ██▒ ▓▒▒██▒ ██▒▓██ ▒ ██▒
▒▓█ ▄ ▒██ ▀█▄ ░ ▓██▄ ▒ ▓██░ ▒░▒██░ ██▒▓██ ░▄█ ▒
▒▓▓▄ ▄██▒░██▄▄▄▄██ ▒ ██▒░ ▓██▓ ░ ▒██ ██░▒██▀▀█▄
▒ ▓███▀ ░ ▓█ ▓██▒▒██████▒▒ ▒██▒ ░ ░ ████▓▒░░██▓ ▒██▒
░ ░▒ ▒ ░ ▒▒ ▓▒█░▒ ▒▓▒ ▒ ░ ▒ ░░ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░
░ ▒ ▒ ▒▒ ░░ ░▒ ░ ░ ░ ░ ▒ ▒░ ░▒ ░ ▒░
░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ░
░ ░ ░ ░ ░ ░ ░ ░
░
castor v1.0.0
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
--silent Do not output any message
-q, --quiet Only errors are displayed. All other output is suppressed
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--no-remote Skip the import of all remote remote packages
--update-remotes Force the update of remote packages
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
completion Dump the shell completion script
hello Welcome to Castor!
help Display help for a command
list List commands
castor
castor:composer [composer] Interact with built-in Composer for castor
castor:execute [execute] Execute a remote task from a packagist directory
tacman
tacman:sqlite Switch to sqlite
tac@system76-pc:~/sites/dummy$ castor tacman:sqlite --help
Description:
Switch to sqlite
Usage:
tacman:sqlite [options]
Options:
--remove remove the DATABASE_URL key
-h, --help Display help for the given command. When no command is given display help for the list command
--silent Do not output any message
-q, --quiet Only errors are displayed. All other output is suppressed
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--no-remote Skip the import of all remote remote packages
--update-remotes Force the update of remote packages
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
tac@system76-pc:~/sites/dummy$
castor
castor tacman:sqlite castor tacman:sqlite --remove