瀏覽代碼

add alias `i` to the install command

refael iliaguyev 6 年之前
父節點
當前提交
b63e2de819
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      doc/03-cli.md
  2. 1 0
      src/Composer/Command/InstallCommand.php

+ 1 - 1
doc/03-cli.md

@@ -65,7 +65,7 @@ php composer.phar init
   to a `composer` repository or a JSON string which similar to what the
   [repositories](04-schema.md#repositories) key accepts.
 
-## install
+## install / i
 
 The `install` command reads the `composer.json` file from the current
 directory, resolves the dependencies, and installs them into `vendor`.

+ 1 - 0
src/Composer/Command/InstallCommand.php

@@ -32,6 +32,7 @@ class InstallCommand extends BaseCommand
     {
         $this
             ->setName('install')
+            ->setAliases(array('i'))
             ->setDescription('Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.')
             ->setDefinition(array(
                 new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),