2013-03-13 22:19:03 +00:00
|
|
|
function __fish_ruby-build_needs_command
|
2024-01-22 06:42:45 +00:00
|
|
|
set -l cmd (commandline -xpc)
|
2021-11-23 13:45:28 +00:00
|
|
|
if test (count $cmd) -eq 1
|
2019-05-05 10:53:09 +00:00
|
|
|
return 0
|
|
|
|
end
|
|
|
|
return 1
|
2013-03-13 22:19:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function __fish_ruby-build_definitions
|
2019-05-05 10:53:09 +00:00
|
|
|
ruby-build --definitions
|
2013-03-13 22:19:03 +00:00
|
|
|
end
|
|
|
|
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -f -c ruby-build -n __fish_ruby-build_needs_command -a '(__fish_ruby-build_definitions)' -d Definition
|
2013-03-13 22:19:03 +00:00
|
|
|
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -f -c ruby-build -n __fish_ruby-build_needs_command -l keep -s k -d 'Do not remove source tree after installation'
|
|
|
|
complete -f -c ruby-build -n __fish_ruby-build_needs_command -l verbose -s v -d 'Verbose mode: print compilation status to stdout'
|
|
|
|
complete -f -c ruby-build -n __fish_ruby-build_needs_command -l definitions -d 'List all built-in definitions'
|
2013-03-13 22:19:03 +00:00
|
|
|
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -f -c ruby-build -n __fish_ruby-build_needs_command -l help -s h -d 'Display help information'
|