diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-20 14:09:31 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-30 10:01:31 +0100 |
commit | 2c127798f6ca9506e36842c57f4b3aa9f771d555 (patch) | |
tree | d36d073a0446f38ed540e75c1789859e107c8923 /lib/bundler | |
parent | 9eaf3fdf5d8f1d75310309fe13a4e3892af1bb35 (diff) | |
download | bundler-2c127798f6ca9506e36842c57f4b3aa9f771d555.tar.gz |
Consistently define aliases after command definitions
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/cli.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index a771e8da3f..1c171b98f0 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -150,7 +150,6 @@ module Bundler "Use the specified gemfile instead of Gemfile" method_option "path", :type => :string, :banner => "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine" unless Bundler.feature_flag.forget_cli_options?}" - map "c" => "check" def check remembered_flag_deprecation("path") @@ -158,6 +157,8 @@ module Bundler Check.new(options).run end + map "c" => "check" + desc "remove [GEM [GEM ...]]", "Removes gems from the Gemfile" long_desc <<-D Removes the given gems from the Gemfile while ensuring that the resulting Gemfile is still valid. If the gem is not found, Bundler prints a error message and if gem could not be removed due to any reason Bundler will display a warning. @@ -219,7 +220,6 @@ module Bundler "Exclude gems that are part of the specified named group." method_option "with", :type => :array, :banner => "Include gems that are part of the specified named group." - map "i" => "install" def install SharedHelpers.major_deprecation(2, "The `--force` option has been renamed to `--redownload`") if ARGV.include?("--force") @@ -233,6 +233,8 @@ module Bundler end end + map "i" => "install" + desc "update [OPTIONS]", "Update the current environment" long_desc <<-D Update will install the newest versions of the gems listed in the Gemfile. Use @@ -434,6 +436,7 @@ module Bundler require_relative "cli/cache" Cache.new(options).run end + map %w[package pack] => :cache desc "exec [OPTIONS]", "Run the command in context of the bundle" @@ -444,12 +447,13 @@ module Bundler bundle exec you can require and call the bundled gems as if they were installed into the system wide RubyGems repository. D - map "e" => "exec" def exec(*args) require_relative "cli/exec" Exec.new(options, args).run end + map "e" => "exec" + desc "config NAME [VALUE]", "Retrieve or set a configuration value" long_desc <<-D Retrieves or sets a configuration value. If only one parameter is provided, retrieve the value. If two parameters are provided, replace the @@ -492,6 +496,7 @@ module Bundler Bundler.ui.info "Bundler version #{Bundler::VERSION}#{build_info}" end end + map %w[-v --version] => :version desc "licenses", "Prints the license of all gems in the bundle" |