some common castor tasks I use
https://github.com/tacman/castor-tools.git
This repository contains functions and tasks I use during developing Symfony applications and using Castor.
<?php
use Castor\Attribute\AsTask;
use function Castor\{io,import,capture,run};
foreach (glob(__DIR__ . '/.castor/vendor/*/*/castor.php') as $castorFile) {
import($castorFile);
}
To install the package, you can use the following command:
castor composer require tacman/castor-tools
castorโโโโโโโโโ โโโโโ โโโโโโโโโโโ โโโโโ โโโ โโโ โโโโโโ โโโโโ โโโโโโโ โโโโโโ โโโโโโโโ โโโโ โโโโโโโโ โโโโโ โโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโ โโโโโโโ โโโโโโโ โโโโ โโโโ โโโโ โโโโ โโโ โโโโโ โโโ โโโโโโโโ โโโโโโโ โโโโ โโโโโโโ โโโโ โโโโ โโโโโโโโโโโ โโโโโโโโโโ โโโโโโ โโโโโโโ โโโโโโโโ โโโโโ โโโโโโโโโ โโโโโโโโ โโโโโโ โโโโโ โโโโโโ โโโโโ
castor v1.1.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 --castor-file[=CASTOR-FILE] Specify an alternative castor file to use instead of the default "castor.php" -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 reset-database Purge and re-create the database start-services Start local docker services 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
castor
castor tacman:sqlite
castor tacman:sqlite --remove