From 046cadb53a0fa4eab1e68cabb91bbb6f78cd0b5f Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 27 Dec 2024 16:14:44 +0700 Subject: [PATCH] Add completion for gem-fetch (cherry picked from commit 7eb254f2bac0be4d2575ae085c44de0473fcb434) --- share/completions/gem.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/completions/gem.fish b/share/completions/gem.fish index d529c5282..a7f6621df 100644 --- a/share/completions/gem.fish +++ b/share/completions/gem.fish @@ -16,6 +16,7 @@ complete -c gem -n __fish_use_subcommand -xa cleanup -d "Cleanup old versions of complete -c gem -n __fish_use_subcommand -xa contents -d "Display the contents of the installed gems" complete -c gem -n __fish_use_subcommand -xa dependency -d "Show the dependencies of an installed gem" complete -c gem -n __fish_use_subcommand -xa environment -d "Display RubyGems environmental information" +complete -c gem -n __fish_use_subcommand -xa fetch -d "Download a gem into current directory" complete -c gem -n __fish_use_subcommand -xa help -d "Provide help on the 'gem' command" complete -c gem -n __fish_use_subcommand -xa install -d "Install a gem into the local repository" complete -c gem -n __fish_use_subcommand -xa list -d "Display all gems whose name starts with STRING" @@ -86,6 +87,9 @@ complete $dep_opt -s p -l pipe -d "Pipe Format (name --version ver)" set -l env_opt -c gem -n 'contains environment (commandline -pxc)' complete $env_opt -xa "packageversion\t'display the package version' gemdir\t'display the path where gems are installed' gempath\t'display path used to search for gems' version\t'display the gem format version' remotesources\t'display the remote gem servers'" +set -l fetch_opt -c gem -n 'contains fetch (commandline -pxc)' +complete $fetch_opt -s v -l version -d "Specify version of gem to download" -x + ## # help set -l help_opt -c gem -n 'contains help (commandline -pxc)'