Update rails completion
This commit is contained in:
parent
77005bb0dc
commit
f8a220d657
17
src/_rails
17
src/_rails
|
@ -28,7 +28,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for Ruby on Rails 7.1.0 (https://rubyonrails.org/).
|
||||
# Completion script for Ruby on Rails 7.2.0 (https://rubyonrails.org/).
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
@ -112,13 +112,15 @@ _rails() {
|
|||
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||
'--no-plugins[Bypass minitest plugin auto-loading]' \
|
||||
'(-s --seed)'{-s,--seed=}'[Sets random seed]:seed' \
|
||||
'(-v -verbose)'{-v,--verbose}'[Show progress processing files]' \
|
||||
'(-v --verbose -q --quiet)'{-v,--verbose}'[Show progress processing files]' \
|
||||
'(-v --verbose -q --quiet)'{-q,--quiet}'[Show no progress processing files]' \
|
||||
'--show-skips[Show skipped at the end of run]' \
|
||||
\*{-n,--name=}'[Filter run on /regexp/ or string]:pattern' \
|
||||
*--exclude='[Exclude /regexp/ or string from run]:pattern' \
|
||||
\*{-S,--skip=}'[Skip reporting of certain types of results]' \
|
||||
'-W[Turn Ruby warnings into errors]' \
|
||||
'(-w --warnings)'{-w,--warnings}'[Run with Ruby warnings enabled]' \
|
||||
'(-e --environment)'{-e,--environment=}'[Run tests in the given environment]' \
|
||||
'(-e --environment)'{-e,--environment=}'[Run tests in the given environment]:environment' \
|
||||
'(-b --backtrace)'{-b,--backtrace}'[Show the complete backtrace]' \
|
||||
'(-d --defer-output)'{-d,--defer-output}'[Output test failures and errors after the test run]' \
|
||||
'(-f --fail-fast)'{-f,--fail-fast}'[Abort test run on first failure or error]' \
|
||||
|
@ -133,6 +135,7 @@ _rails() {
|
|||
_arguments \
|
||||
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||
'(-e --environment)'{-e,--environment=}'[The environment to run "runner"]:env:(test development production)' \
|
||||
'(-w --skip-executor)'{-w,--skip-executor}'[Do not wrap with Rails Executor]' \
|
||||
'*:: :_files -g "*.rb"' \
|
||||
&& ret=0
|
||||
;;
|
||||
|
@ -185,7 +188,7 @@ _rails_subcommands() {
|
|||
{dbconsole,db}'[Start a console for the database specified in config/database.yml]'
|
||||
plugin'[Install a plugin]'
|
||||
|
||||
# generated by ./bin/rails --help | ruby -ne '(b=$2;printf("%s[%s]\n", $1.gsub(/:/,"\\:"),b.strip)) if /^([a-z0-9_:]+)\S*\s+([^(\n]+)/'
|
||||
# generated by ./bin/rails --help | ruby -ne '(b=$2;printf("\"%s[%s]\"\n", $1.gsub(/:/,"\\:"),b.strip)) if /^([a-z0-9_:]+)\S*\s+([^(\n]+)/'
|
||||
"about[List versions of all Rails frameworks and the environment]"
|
||||
"action_mailbox\:ingress\:exim[Relay an inbound email from Exim to Action Mailbox]"
|
||||
"action_mailbox\:ingress\:postfix[Relay an inbound email from Postfix to Action Mailbox]"
|
||||
|
@ -311,9 +314,13 @@ _rails_new() {
|
|||
--skip-system-test'[Skip system test files]' \
|
||||
--skip-bootsnap'[Skip bootsnap gem]' \
|
||||
--skip-dev-gems'[Skip development gems(e.g. web-console)]' \
|
||||
--skip-rubocop'[Skip RuboCop setup]' \
|
||||
--skip-brakeman'[Skip brakeman setup]' \
|
||||
--skip-ci'[Skip GitHub CI files]' \
|
||||
--dev'[Setup the application with Gemfile pointing to your Rails checkout]' \
|
||||
--devcontainer'[Generate devcontainer files]' \
|
||||
--edge'[Setup the application with Gemfile pointing to Rails repository]' \
|
||||
--master'[Set up the application with Gemfile pointing to Rails repository main branch]' \
|
||||
'(--main --master)'{--main,--master}'[Set up the application with Gemfile pointing to Rails repository main branch]' \
|
||||
--rc='[Path to file containing extra configuration options for rails command]:rc:_files' \
|
||||
--api'[Preconfigure smaller stack for API only apps]' \
|
||||
--minimal'[Preconfigure a minimal rails app]' \
|
||||
|
|
Loading…
Reference in New Issue