Update rails completion list
And update command that generates the list for Rails 7.2
This commit is contained in:
parent
e897589c96
commit
3b824c596e
24
src/_rails
24
src/_rails
|
@ -188,7 +188,7 @@ _rails_subcommands() {
|
||||||
{dbconsole,db}'[Start a console for the database specified in config/database.yml]'
|
{dbconsole,db}'[Start a console for the database specified in config/database.yml]'
|
||||||
plugin'[Install a plugin]'
|
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.gsub(/"/,"\\\"").gsub(/`/, "\\\""))) if /^([a-z0-9_:]+)\S*\s+([^(\n]+)/'
|
||||||
"about[List versions of all Rails frameworks and the environment]"
|
"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\:exim[Relay an inbound email from Exim to Action Mailbox]"
|
||||||
"action_mailbox\:ingress\:postfix[Relay an inbound email from Postfix to Action Mailbox]"
|
"action_mailbox\:ingress\:postfix[Relay an inbound email from Postfix to Action Mailbox]"
|
||||||
|
@ -204,10 +204,11 @@ _rails_subcommands() {
|
||||||
"assets\:clobber[Remove compiled assets]"
|
"assets\:clobber[Remove compiled assets]"
|
||||||
"assets\:environment[Load asset compile environment]"
|
"assets\:environment[Load asset compile environment]"
|
||||||
"assets\:precompile[Compile all the assets named in config.assets.precompile]"
|
"assets\:precompile[Compile all the assets named in config.assets.precompile]"
|
||||||
|
"boot[Boot the application and exit]"
|
||||||
"cache_digests\:dependencies[Lookup first-level dependencies for TEMPLATE]"
|
"cache_digests\:dependencies[Lookup first-level dependencies for TEMPLATE]"
|
||||||
"cache_digests\:nested_dependencies[Lookup nested dependencies for TEMPLATE]"
|
"cache_digests\:nested_dependencies[Lookup nested dependencies for TEMPLATE]"
|
||||||
"credentials\:diff[Enroll/disenroll in decrypted diffs of credentials using git]"
|
"credentials\:diff[Enroll/disenroll in decrypted diffs of credentials using git]"
|
||||||
"credentials\:edit[Open the decrypted credentials in $VISUAL or $EDITOR for editing]"
|
"credentials\:edit[Open the decrypted credentials in \"$VISUAL\" or \"$EDITOR\" for editing]"
|
||||||
"credentials\:show[Show the decrypted credentials]"
|
"credentials\:show[Show the decrypted credentials]"
|
||||||
"db\:create[Create the database from DATABASE_URL or config/database.yml for the current RAILS_ENV]"
|
"db\:create[Create the database from DATABASE_URL or config/database.yml for the current RAILS_ENV]"
|
||||||
"db\:drop[Drop the database from DATABASE_URL or config/database.yml for the current RAILS_ENV]"
|
"db\:drop[Drop the database from DATABASE_URL or config/database.yml for the current RAILS_ENV]"
|
||||||
|
@ -215,10 +216,10 @@ _rails_subcommands() {
|
||||||
"db\:environment\:set[Set the environment value for the database]"
|
"db\:environment\:set[Set the environment value for the database]"
|
||||||
"db\:fixtures\:load[Load fixtures into the current environment's database]"
|
"db\:fixtures\:load[Load fixtures into the current environment's database]"
|
||||||
"db\:migrate[Migrate the database]"
|
"db\:migrate[Migrate the database]"
|
||||||
"db\:migrate\:down[Run the 'down' for a given migration VERSION]"
|
"db\:migrate\:down[Run the \"down\" for a given migration VERSION]"
|
||||||
"db\:migrate\:redo[Roll back the database one migration and re-migrate up]"
|
"db\:migrate\:redo[Roll back the database one migration and re-migrate up]"
|
||||||
"db\:migrate\:status[Display status of migrations]"
|
"db\:migrate\:status[Display status of migrations]"
|
||||||
"db\:migrate\:up[Run the 'up' for a given migration VERSION]"
|
"db\:migrate\:up[Run the \"up\" for a given migration VERSION]"
|
||||||
"db\:prepare[Run setup if database does not exist, or run migrations if it does]"
|
"db\:prepare[Run setup if database does not exist, or run migrations if it does]"
|
||||||
"db\:reset[Drop and recreate all databases from their schema for the current environment and load the seeds]"
|
"db\:reset[Drop and recreate all databases from their schema for the current environment and load the seeds]"
|
||||||
"db\:rollback[Roll the schema back to the previous version]"
|
"db\:rollback[Roll the schema back to the previous version]"
|
||||||
|
@ -229,11 +230,12 @@ _rails_subcommands() {
|
||||||
"db\:seed[Load the seed data from db/seeds.rb]"
|
"db\:seed[Load the seed data from db/seeds.rb]"
|
||||||
"db\:seed\:replant[Truncate tables of each database for current environment and load the seeds]"
|
"db\:seed\:replant[Truncate tables of each database for current environment and load the seeds]"
|
||||||
"db\:setup[Create all databases, load all schemas, and initialize with the seed data]"
|
"db\:setup[Create all databases, load all schemas, and initialize with the seed data]"
|
||||||
"db\:system\:change[Change 'config/database.yml' and your database gem to the target database]"
|
"db\:system\:change[Change \"config/database.yml\" and your database gem to the target database]"
|
||||||
"db\:version[Retrieve the current schema version number]"
|
"db\:version[Retrieve the current schema version number]"
|
||||||
"destroy[Remove code generated by 'bin/rails generate']"
|
"destroy[Remove code generated by \"bin/rails generate\"]"
|
||||||
"dev\:cache[Toggle development mode caching on/off]"
|
"dev\:cache[Toggle development mode caching on/off]"
|
||||||
"encrypted\:edit[Open the decrypted file in $VISUAL or $EDITOR for editing]"
|
"devcontainer[Generate a Dev Container setup based on current application configuration]"
|
||||||
|
"encrypted\:edit[Open the decrypted file in \"$VISUAL\" or \"$EDITOR\" for editing]"
|
||||||
"encrypted\:show[Show the decrypted contents of the file]"
|
"encrypted\:show[Show the decrypted contents of the file]"
|
||||||
"importmap\:install[Setup Importmap for the app]"
|
"importmap\:install[Setup Importmap for the app]"
|
||||||
"initializers[Print out all defined initializers in the order they are invoked by Rails.]"
|
"initializers[Print out all defined initializers in the order they are invoked by Rails.]"
|
||||||
|
@ -244,16 +246,17 @@ _rails_subcommands() {
|
||||||
"routes[List all the defined routes]"
|
"routes[List all the defined routes]"
|
||||||
"runner[Run Ruby code in the context of your application]"
|
"runner[Run Ruby code in the context of your application]"
|
||||||
"secret[Generate a cryptographically secure secret key]"
|
"secret[Generate a cryptographically secure secret key]"
|
||||||
"secrets\:edit[**deprecated** Open the secrets in $VISUAL or $EDITOR for editing]"
|
|
||||||
"secrets\:show[**deprecated** Show the decrypted secrets]"
|
|
||||||
"stats[Report code statistics]"
|
"stats[Report code statistics]"
|
||||||
"stimulus\:install[Install Stimulus into the app]"
|
"stimulus\:install[Install Stimulus into the app]"
|
||||||
|
"stimulus\:install\:bun[Install Stimulus on an app running bun]"
|
||||||
"stimulus\:install\:importmap[Install Stimulus on an app running importmap-rails]"
|
"stimulus\:install\:importmap[Install Stimulus on an app running importmap-rails]"
|
||||||
"stimulus\:install\:node[Install Stimulus on an app running node]"
|
"stimulus\:install\:node[Install Stimulus on an app running node]"
|
||||||
|
"stimulus\:manifest\:display[Show the current Stimulus manifest]"
|
||||||
|
"stimulus\:manifest\:update[Update the Stimulus manifest]"
|
||||||
"test\:all[Run all tests, including system tests]"
|
"test\:all[Run all tests, including system tests]"
|
||||||
"test\:channels[Run tests in test/channels]"
|
"test\:channels[Run tests in test/channels]"
|
||||||
"test\:controllers[Run tests in test/controllers]"
|
"test\:controllers[Run tests in test/controllers]"
|
||||||
"test\:db[Reset the database and run 'bin/rails test']"
|
"test\:db[Reset the database and run \"bin/rails test\"]"
|
||||||
"test\:functionals[Run tests in test/controllers, test/mailers, and test/functional]"
|
"test\:functionals[Run tests in test/controllers, test/mailers, and test/functional]"
|
||||||
"test\:generators[Run tests in test/lib/generators]"
|
"test\:generators[Run tests in test/lib/generators]"
|
||||||
"test\:helpers[Run tests in test/helpers]"
|
"test\:helpers[Run tests in test/helpers]"
|
||||||
|
@ -267,6 +270,7 @@ _rails_subcommands() {
|
||||||
"tmp\:clear[Clear cache, socket and screenshot files from tmp/]"
|
"tmp\:clear[Clear cache, socket and screenshot files from tmp/]"
|
||||||
"tmp\:create[Create tmp directories for cache, sockets, and pids]"
|
"tmp\:create[Create tmp directories for cache, sockets, and pids]"
|
||||||
"turbo\:install[Install Turbo into the app]"
|
"turbo\:install[Install Turbo into the app]"
|
||||||
|
"turbo\:install\:bun[Install Turbo into the app with bun]"
|
||||||
"turbo\:install\:importmap[Install Turbo into the app with asset pipeline]"
|
"turbo\:install\:importmap[Install Turbo into the app with asset pipeline]"
|
||||||
"turbo\:install\:node[Install Turbo into the app with webpacker]"
|
"turbo\:install\:node[Install Turbo into the app with webpacker]"
|
||||||
"turbo\:install\:redis[Switch on Redis and use it in development]"
|
"turbo\:install\:redis[Switch on Redis and use it in development]"
|
||||||
|
|
Loading…
Reference in New Issue