2017 © Pedro PelĆ”ez
 

library console-alias

Helper to quickly define aliases for commands

image

kdauzickas/console-alias

Helper to quickly define aliases for commands

  • Friday, April 3, 2015
  • by kdauzickas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Console Alias

This minimal bundle allows you to quickly define console commands that can be either aliases for other symfony console commands or actual shell commands., (*1)

Installation

  1. Run composer require kdauzickas/console-alias
  2. Add new KD\Console\AliasBundle\KDConsoleAliasBundle() to $bundles in your AppKernel

Configuration

Commands are created from what is defined in your config.yml. Configuration shoud be done in the manner shown below. Only name and command fields are mondatory., (*2)

kd_console_alias:
    commands:
        commandName:
            name: "command name that will be used to call the command"
            description: "description to be shown in command list"
            console: "is this a symfony console command alias? Default: false"
            command: "actual command"
            arguments:
                - list of
                - arguments
                - to be passed
                - to the command

Example:, (*3)

kd_console_alias:
    commands:
        pmd:
            name: pmd
            description: Run phpmd
            command: bin/phpmd
            arguments:
                - src
                - text
                - cleancode,codesize,controversial,design,naming,unusedcode

        config:
            name: "c:d"
            description: Alias of the config:debug symfony command
            command: "config:debug"
            console: true

This will allow you to run a command app/console pmd that will execute bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode. Command app/console c:d will execute app/console config:debug, (*4)

The Versions

03/04 2015

dev-master

9999999-dev

Helper to quickly define aliases for commands

  Sources   Download

MIT

The Requires

 

The Development Requires

by Karolis Daužickas

03/04 2015

v0.1.1

0.1.1.0

Helper to quickly define aliases for commands

  Sources   Download

MIT

The Requires

 

The Development Requires

by Karolis Daužickas

03/04 2015

v0.1.0

0.1.0.0

Helper to quickly define aliases for commands

  Sources   Download

MIT

The Requires

 

The Development Requires

by Karolis Daužickas