Commit eef6a2ed authored by Mislav Marohnić's avatar Mislav Marohnić
Browse files

Merge pull request #841 from jasonkarns/rbenv-completions

Provide completion of flags for install/uninstall
parents 1f7fb91c 273dab13
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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

+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ set -e

# Provide rbenv completions
if [ "$1" = "--complete" ]; then
  echo --force
  exec rbenv versions --bare
fi

+6 −0
Original line number Diff line number Diff line
@@ -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