summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-07-02 04:27:33 +0000
committerThe Bundler Bot <bot@bundler.io>2018-07-02 04:27:33 +0000
commit431a3f76868bdb9d4c94be25b28b0c7f26ee9f6e (patch)
tree37cfae8033789fb21d9b955d910db124014ba262 /man
parent3a54aa9cc5bb7be003b963dd17ff47f52f069901 (diff)
parentabaa283466376d858436147495f011a331393d8d (diff)
downloadbundler-431a3f76868bdb9d4c94be25b28b0c7f26ee9f6e.tar.gz
Auto merge of #6513 - agrim123:agr-bundler-remove, r=indirect
Add `bundle remove` Features of the command implemented: - Multiple gems support ```bash $ bundle remove rack rails ``` - Remove any empty block that might occur after removing the gem or otherwise present Things yet to implement: - Add `rm` alias. _Optional_ - [x] Add `--install` flag to remove gems from `.bundle`. - [x] Handling multiple gems on the same line. - [x] Handle gem spec - [x] Handle eval_gemfile cases ([one](https://github.com/bundler/bundler/pull/6513#discussion_r195632603) case left) Closes #6506
Diffstat (limited to 'man')
-rw-r--r--man/bundle-remove.ronn23
1 files changed, 23 insertions, 0 deletions
diff --git a/man/bundle-remove.ronn b/man/bundle-remove.ronn
new file mode 100644
index 0000000000..40a239b4a2
--- /dev/null
+++ b/man/bundle-remove.ronn
@@ -0,0 +1,23 @@
+bundle-remove(1) -- Removes gems from the Gemfile
+===========================================================================
+
+## SYNOPSIS
+
+`bundle remove [GEM [GEM ...]] [--install]`
+
+## DESCRIPTION
+
+Removes the given gems from the Gemfile while ensuring that the resulting Gemfile is still valid. If a gem cannot be removed, a warning is printed. If a gem is already absent from the Gemfile, and error is raised.
+
+## OPTIONS
+
+* `--install`:
+ Runs `bundle install` after the given gems have been removed from the Gemfile, which ensures that both the lockfile and the installed gems on disk are also updated to remove the given gem(s).
+
+Example:
+
+bundle remove rails
+
+bundle remove rails rack
+
+bundle remove rails rack --install