chubbyphp / chubbyphp-clean-directories
基于名称映射清理目录的命令。
1.3.1
2023-11-30 18:01 UTC
Requires
- php: ^8.1
- symfony/console: ^5.4.31|^6.3.8|^7.0
Requires (Dev)
- chubbyphp/chubbyphp-dev-helper: dev-master
- chubbyphp/chubbyphp-mock: ^1.7.0
- infection/infection: ^0.27.8
- php-coveralls/php-coveralls: ^2.7.0
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.45
- phpunit/phpunit: ^10.4.2
- psr/container: ^2.0.2
README
描述
一个基于目录名称到目录路径映射清理目录的命令。
需求
- php: ^8.1
- symfony/console: ^5.4.31|^6.3.8|^7.0
安装
通过Composer安装,作为chubbyphp/chubbyphp-clean-directories。
composer require chubbyphp/chubbyphp-clean-directories "^1.3"
使用方法
#!/usr/bin/env php <?php declare(strict_types=1); namespace App; use Chubbyphp\CleanDirectories\Command\CleanDirectoriesCommand; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Input\InputOption; require __DIR__.'/../vendor/autoload.php'; $input = new ArgvInput(); $console = new Application(); $console->addCommand(new CleanDirectoriesCommand(['directoryName' => 'directoryPath'])); $console->run($input);
console clean-directories directoryName
版权
2024 Dominik Zogg