aboutsummaryrefslogtreecommitdiffstats
path: root/src/_rails
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2024-08-01 11:39:07 +0900
committerShohei YOSHIDA <syohex@gmail.com>2024-08-01 11:39:07 +0900
commitf8a220d6570c9f6f1cd2797d22f9152dedeaa6ac (patch)
treea244c43707c28424c1b9315006bcd1475d3ecdf2 /src/_rails
parentMerge pull request #1093 from zsh-users/update-go-completion (diff)
downloadzsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.tar
zsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.tar.gz
zsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.tar.bz2
zsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.tar.lz
zsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.tar.xz
zsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.tar.zst
zsh-completions-f8a220d6570c9f6f1cd2797d22f9152dedeaa6ac.zip
Update rails completion
Diffstat (limited to 'src/_rails')
-rw-r--r--src/_rails17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/_rails b/src/_rails
index 153e4df..a00e658 100644
--- a/src/_rails
+++ b/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]' \