PageRenderTime 26ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/reference/fish-1.23.0/share/completions/gem.fish

http://github.com/cardmagic/lucash
Fish | 197 lines | 155 code | 15 blank | 27 comment | 18 complexity | b1f0268229e17555721cfecfd0f3c92c MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-1.0, GPL-2.0, LGPL-2.0
  1. # Completions for rubygem's `gem' command
  2. # Author: Tassilo Horn <tassilo@member.fsf.org>
  3. #####
  4. # Global options
  5. complete -c gem -n 'not __subcommand_given' -s h -l help -d "Print usage informations and quit"
  6. complete -c gem -n 'not __subcommand_given' -s v -l version -d "Print the version and quit"
  7. #####
  8. # Subcommands
  9. complete -c gem -n '__fish_use_subcommand' -xa 'build\t"'(_ "Build a gem from a gemspec")'"'
  10. complete -c gem -n '__fish_use_subcommand' -xa 'cert\t"'(_ "Adjust RubyGems certificate settings")'"'
  11. complete -c gem -n '__fish_use_subcommand' -xa 'check\t"'(_ "Check installed gems")'"'
  12. complete -c gem -n '__fish_use_subcommand' -xa 'cleanup\t"'(_ "Cleanup old versions of installed gems in the local repository")'"'
  13. complete -c gem -n '__fish_use_subcommand' -xa 'contents\t"'(_ "Display the contents of the installed gems")'"'
  14. complete -c gem -n '__fish_use_subcommand' -xa 'dependency\t"'(_ "Show the dependencies of an installed gem")'"'
  15. complete -c gem -n '__fish_use_subcommand' -xa 'environment\t"'(_ "Display RubyGems environmental information")'"'
  16. complete -c gem -n '__fish_use_subcommand' -xa 'help\t"'(_ "Provide help on the 'gem' command")'"'
  17. complete -c gem -n '__fish_use_subcommand' -xa 'install\t"'(_ "Install a gem into the local repository")'"'
  18. complete -c gem -n '__fish_use_subcommand' -xa 'list\t"'(_ "Display all gems whose name starts with STRING")'"'
  19. complete -c gem -n '__fish_use_subcommand' -xa 'query\t"'(_ "Query gem information in local or remote repositories")'"'
  20. complete -c gem -n '__fish_use_subcommand' -xa 'rdoc\t"'(_ "Generates RDoc for pre-installed gems")'"'
  21. complete -c gem -n '__fish_use_subcommand' -xa 'search\t"'(_ "Display all gems whose name contains STRING")'"'
  22. complete -c gem -n '__fish_use_subcommand' -xa 'specification\t"'(_ "Display gem specification (in yaml)")'"'
  23. complete -c gem -n '__fish_use_subcommand' -xa 'uninstall\t"'(_ "Uninstall a gem from the local repository")'"'
  24. complete -c gem -n '__fish_use_subcommand' -xa 'unpack\t"'(_ "Unpack an installed gem to the current directory")'"'
  25. complete -c gem -n '__fish_use_subcommand' -xa 'update\t"'(_ "Update the named gem (or all installed gems) in the local repository")'"'
  26. #####
  27. # Subcommand switches
  28. # common opts
  29. set -l common_opt -c gem -n 'not __fish_use_subcommand' #'__subcommand_given'
  30. complete $common_opt -l source --description "Use URL as the remote source for gems" -x
  31. complete $common_opt -s p -l http-proxy --description "Use the given HTTP proxy for remote operations" -x
  32. complete $common_opt -l no-http-proxy --description "Use no HTTP proxy for remote operations"
  33. complete $common_opt -s h -l help --description "Get help on this command"
  34. complete $common_opt -s v -l verbose --description "Set the verbose level of output"
  35. complete $common_opt -l config-file --description "Use this config file instead of default" -x
  36. complete $common_opt -l backtrace --description "Show stack backtrace on errors"
  37. complete $common_opt -l debug --description "Turn on Ruby debugging"
  38. ##
  39. # cert
  40. set -l cert_opt -c gem -n 'contains cert (commandline -poc)'
  41. complete $cert_opt -s a -l add --description "Add a trusted certificate" -x
  42. complete $cert_opt -s l -l list --description "List trusted certificates"
  43. complete $cert_opt -s r -l remove --description "Remove trusted certificates containing STRING" -x
  44. complete $cert_opt -s b -l build --description "Build private key and self-signed certificate for EMAIL_ADDR" -x
  45. complete $cert_opt -s C -l certificate --description "Certificate for --sign command" -x
  46. complete $cert_opt -s K -l private-key --description "Private key for --sign command" -x
  47. complete $cert_opt -s s -l sign --description "Sign a certificate with my key and certificate" -x
  48. ##
  49. # check
  50. set -l check_opt -c gem -n 'contains check (commandline -poc)'
  51. complete $check_opt -s v -l verify --description "Verify gem file against its internal checksum" -x
  52. complete $check_opt -s a -l alien --description "Report 'unmanaged' or rogue files in the gem repository"
  53. complete $check_opt -s t -l test --description "Run unit tests for gem"
  54. complete $check_opt -s V -l version --description "Specify version for which to run unit tests"
  55. ##
  56. # cleanup
  57. set -l cleanup_opt -c gem -n 'contains cleanup (commandline -poc)'
  58. complete $cleanup_opt -s d -l dryrun --description "Don't really cleanup"
  59. ##
  60. # contents
  61. set -l contents_opt -c gem -n 'contains contents (commandline -poc)'
  62. complete $contents_opt -s l -l list --description "List the files inside a Gem"
  63. complete $contents_opt -s V -l version --description "Specify version for gem to view"
  64. complete $contents_opt -s s -l spec-dir --description "Search for gems under specific paths" -x
  65. complete $contents_opt -s v -l verbose --description "Be verbose when showing status"
  66. ##
  67. # dependency
  68. set -l dep_opt -c gem -n 'contains dependency (commandline -poc)'
  69. complete $dep_opt -s v -l version --description "Specify version of gem to uninstall" -x
  70. complete $dep_opt -s r -l reverse-dependencies --description "Include reverse dependencies in the output"
  71. complete $dep_opt -l no-reverse-dependencies --description "Don't include reverse dependencies in the output"
  72. complete $dep_opt -s p -l pipe --description "Pipe Format (name --version ver)"
  73. ##
  74. # environment
  75. set -l env_opt -c gem -n 'contains environment (commandline -poc)'
  76. 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")'"'
  77. ##
  78. # help
  79. set -l help_opt -c gem -n 'contains help (commandline -poc)'
  80. complete $help_opt -xa 'commands\t"'(_ "list all 'gem' commands")'" examples\t"'(_ "show some examples of usage")'" build cert check cleanup contents dependency environment help install list query rdoc search specification uninstall unpack update'
  81. ##
  82. # install
  83. set -l install_opt -c gem -n 'contains install (commandline -poc)'
  84. complete $install_opt -s v -l version --description "Specify version of gem to install" -x
  85. complete $install_opt -s l -l local --description "Restrict operations to the LOCAL domain (default)"
  86. complete $install_opt -s r -l remote --description "Restrict operations to the REMOTE domain"
  87. complete $install_opt -s b -l both --description "Allow LOCAL and REMOTE operations"
  88. complete $install_opt -s i -l install-dir --description "Gem repository directory to get installed gems" -x
  89. complete $install_opt -s d -l rdoc --description "Generate RDoc documentation for the gem on install"
  90. complete $install_opt -l no-rdoc --description "Don't generate RDoc documentation for the gem on install"
  91. complete $install_opt -l ri --description "Generate RI documentation for the gem on install"
  92. complete $install_opt -l no-ri --description "Don't generate RI documentation for the gem on install"
  93. complete $install_opt -s f -l force --description "Force gem to install, bypassing dependency checks"
  94. complete $install_opt -l no-force --description "Don't force gem to install, bypassing dependency checks"
  95. complete $install_opt -s t -l test --description "Run unit tests prior to installation"
  96. complete $install_opt -l no-test --description "Don't run unit tests prior to installation"
  97. complete $install_opt -s w -l wrappers --description "Use bin wrappers for executables"
  98. complete $install_opt -l no-wrappers --description "Don't use bin wrappers for executables"
  99. complete $install_opt -s P -l trust-policy --description "Specify gem trust policy" -x
  100. complete $install_opt -l ignore-dependencies --description "Do not install any required dependent gems"
  101. complete $install_opt -s y -l include-dependencies --description "Unconditionally install the required dependent gems"
  102. ##
  103. # list
  104. set -l list_opt -c gem -n 'contains list (commandline -poc)'
  105. complete $list_opt -s d -l details --description "Display detailed information of gem(s)"
  106. complete $list_opt -l no-details --description "Don't display detailed information of gem(s)"
  107. complete $list_opt -s l -l local --description "Restrict operations to the LOCAL domain (default)"
  108. complete $list_opt -s r -l remote --description "Restrict operations to the REMOTE domain"
  109. complete $list_opt -s b -l both --description "Allow LOCAL and REMOTE operations"
  110. ##
  111. # query
  112. set -l query_opt -c gem -n 'contains query (commandline -poc)'
  113. complete $query_opt -s n -l name-matches --description "Name of gem(s) to query on matches the provided REGEXP" -x
  114. complete $query_opt -s d -l details --description "Display detailed information of gem(s)"
  115. complete $query_opt -l no-details --description "Don't display detailed information of gem(s)"
  116. complete $query_opt -s l -l local --description "Restrict operations to the LOCAL domain (default)"
  117. complete $query_opt -s r -l remote --description "Restrict operations to the REMOTE domain"
  118. complete $query_opt -s b -l both --description "Allow LOCAL and REMOTE operations"
  119. ##
  120. # rdoc
  121. set -l rdoc_opt -c gem -n 'contains rdoc (commandline -poc)'
  122. complete $rdoc_opt -l all --description "Generate RDoc/RI documentation for all installed gems"
  123. complete $rdoc_opt -l rdoc --description "Include RDoc generated documents"
  124. complete $rdoc_opt -l no-rdoc --description "Don't include RDoc generated documents"
  125. complete $rdoc_opt -l ri --description "Include RI generated documents"
  126. complete $rdoc_opt -l no-ri --description "Don't include RI generated documents"
  127. complete $rdoc_opt -s v -l version --description "Specify version of gem to rdoc" -x
  128. ##
  129. # search
  130. set -l search_opt -c gem -n 'contains search (commandline -poc)'
  131. complete $search_opt -s d -l details --description "Display detailed information of gem(s)"
  132. complete $search_opt -l no-details --description "Don't display detailed information of gem(s)"
  133. complete $search_opt -s l -l local --description "Restrict operations to the LOCAL domain (default)"
  134. complete $search_opt -s r -l remote --description "Restrict operations to the REMOTE domain"
  135. complete $search_opt -s b -l both --description "Allow LOCAL and REMOTE operations"
  136. ##
  137. # specification
  138. set -l specification_opt -c gem -n 'contains specification (commandline -poc)'
  139. complete $specification_opt -s v -l version --description "Specify version of gem to examine" -x
  140. complete $specification_opt -s l -l local --description "Restrict operations to the LOCAL domain (default)"
  141. complete $specification_opt -s r -l remote --description "Restrict operations to the REMOTE domain"
  142. complete $specification_opt -s b -l both --description "Allow LOCAL and REMOTE operations"
  143. complete $specification_opt -l all --description "Output specifications for all versions of the gem"
  144. ##
  145. # uninstall
  146. set -l uninstall_opt -c gem -n 'contains uninstall (commandline -poc)'
  147. complete $uninstall_opt -s a -l all --description "Uninstall all matching versions"
  148. complete $uninstall_opt -l no-all --description "Don't uninstall all matching versions"
  149. complete $uninstall_opt -s i -l ignore-dependencies --description "Ignore dependency requirements while uninstalling"
  150. complete $uninstall_opt -l no-ignore-dependencies --description "Don't ignore dependency requirements while uninstalling"
  151. complete $uninstall_opt -s x -l executables --description "Uninstall applicable executables without confirmation"
  152. complete $uninstall_opt -l no-executables --description "Don't uninstall applicable executables without confirmation"
  153. complete $uninstall_opt -s v -l version --description "Specify version of gem to uninstall" -x
  154. ##
  155. # unpack
  156. set -l unpack_opt -c gem -n 'contains unpack (commandline -poc)'
  157. complete $unpack_opt -s v -l version --description "Specify version of gem to unpack" -x
  158. ##
  159. # update
  160. set -l update_opt -c gem -n 'contains update (commandline -poc)'
  161. complete $update_opt -s i -l install-dir --description "Gem repository directory to get installed gems"
  162. complete $update_opt -s d -l rdoc --description "Generate RDoc documentation for the gem on install"
  163. complete $update_opt -l no-rdoc --description "Don't generate RDoc documentation for the gem on install"
  164. complete $update_opt -l ri --description "Generate RI documentation for the gem on install"
  165. complete $update_opt -l no-ri --description "Don't generate RI documentation for the gem on install"
  166. complete $update_opt -s f -l force --description "Force gem to install, bypassing dependency checks"
  167. complete $update_opt -l no-force --description "Don't force gem to install, bypassing dependency checks"
  168. complete $update_opt -s t -l test --description "Run unit tests prior to installation"
  169. complete $update_opt -l no-test --description "Don't run unit tests prior to installation"
  170. complete $update_opt -s w -l wrappers --description "Use bin wrappers for executables"
  171. complete $update_opt -l no-wrappers --description "Don't use bin wrappers for executables"
  172. complete $update_opt -s P -l trust-policy --description "Specify gem trust policy" -x
  173. complete $update_opt -l ignore-dependencies --description "Do not install any required dependent gems"
  174. complete $update_opt -s y -l include-dependencies --description "Unconditionally install the required dependent gems"
  175. complete $update_opt -l system --description "Update the RubyGems system software"