Commit eef6a2ed by Mislav Marohnić

Merge pull request #841 from jasonkarns/rbenv-completions

Provide completion of flags for install/uninstall
parents 1f7fb91c 273dab13
...@@ -39,6 +39,12 @@ shopt -u nullglob ...@@ -39,6 +39,12 @@ shopt -u nullglob
# Provide rbenv completions # Provide rbenv completions
if [ "$1" = "--complete" ]; then if [ "$1" = "--complete" ]; then
echo --list
echo --force
echo --skip-existing
echo --keep
echo --verbose
echo --patch
exec ruby-build --definitions exec ruby-build --definitions
fi fi
......
...@@ -14,6 +14,7 @@ set -e ...@@ -14,6 +14,7 @@ set -e
# Provide rbenv completions # Provide rbenv completions
if [ "$1" = "--complete" ]; then if [ "$1" = "--complete" ]; then
echo --force
exec rbenv versions --bare exec rbenv versions --bare
fi fi
......
...@@ -141,6 +141,12 @@ OUT ...@@ -141,6 +141,12 @@ OUT
run rbenv-install --complete run rbenv-install --complete
assert_success assert_success
assert_output <<OUT assert_output <<OUT
--list
--force
--skip-existing
--keep
--verbose
--patch
${RBENV_ROOT}/plugins/bar/share/ruby-build ${RBENV_ROOT}/plugins/bar/share/ruby-build
${RBENV_ROOT}/plugins/foo/share/ruby-build ${RBENV_ROOT}/plugins/foo/share/ruby-build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment