Skip to content

Support for command aliases #13

@jigarius

Description

@jigarius

Requirements

Allow Phpake callbacks to declare command aliases using a @alias annotation. For example,

# Phpakefile

namespace Input_Output;

/**
 * Say hello world.
 *
 * @alias hhum
 * @alias helo
 */
function hello_human() {
  echo 'Hello human' . PHP_EOL;
}

At the end of all the changes, running phpake input-output:hello-human --help should show the command alias(es) correctly. Running phpake helo should work the same way as phpake input-output::hello-human.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions