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
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --list
echo --force
echo --skip-existing
echo --keep
echo --verbose
echo --patch
exec ruby-build --definitions
fi
......
......@@ -14,6 +14,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --force
exec rbenv versions --bare
fi
......
......@@ -141,6 +141,12 @@ OUT
run rbenv-install --complete
assert_success
assert_output <<OUT
--list
--force
--skip-existing
--keep
--verbose
--patch
${RBENV_ROOT}/plugins/bar/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