chubbyphp/chubbyphp-clean-directories

A command to clean directories based on name mapping.

1.1.0 2021-01-09 18:19 UTC

This package is auto-updated.

Last update: 2021-01-23 17:50:07 UTC


README

Build Status Coverage Status Infection MSI Latest Stable Version Total Downloads Monthly Downloads

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

A command to clean directories based on directoryName => directoryPath mapping.

Requirements

Installation

Through Composer as chubbyphp/chubbyphp-clean-directories.

composer require chubbyphp/chubbyphp-clean-directories "^1.1"

Usage

#!/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

Copyright

Dominik Zogg 2020