1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Hide commands from API site.

They're just barren on the site and confure more than guide, instead
rely on the built in --help to guide users.
This commit is contained in:
Kasper Timm Hansen 2016-10-28 20:44:58 +02:00
parent 86bf5adaa8
commit 83776676e5
13 changed files with 17 additions and 17 deletions

View file

@ -13,7 +13,7 @@ module Rails
end
module Command
class ApplicationCommand < Base
class ApplicationCommand < Base # :nodoc:
hide_command!
def help

View file

@ -64,7 +64,7 @@ module Rails
end
module Command
class ConsoleCommand < Base
class ConsoleCommand < Base # :nodoc:
include EnvironmentArgument
class_option :sandbox, aliases: "-s", type: :boolean, default: false,

View file

@ -134,7 +134,7 @@ module Rails
end
module Command
class DbconsoleCommand < Base
class DbconsoleCommand < Base # :nodoc:
include EnvironmentArgument
class_option :include_password, aliases: "-p", type: :boolean,

View file

@ -2,8 +2,8 @@ require "rails/generators"
module Rails
module Command
class DestroyCommand < Base
def help # :nodoc:
class DestroyCommand < Base # :nodoc:
def help
Rails::Generators.help self.class.command_name
end

View file

@ -2,8 +2,8 @@ require "rails/generators"
module Rails
module Command
class GenerateCommand < Base
def help # :nodoc:
class GenerateCommand < Base # :nodoc:
def help
Rails::Generators.help self.class.command_name
end

View file

@ -1,6 +1,6 @@
module Rails
module Command
class HelpCommand < Base
class HelpCommand < Base # :nodoc:
hide_command!
def help(*)

View file

@ -1,6 +1,6 @@
module Rails
module Command
class NewCommand < Base
class NewCommand < Base # :nodoc:
def help
Rails::Command.invoke :application, [ "--help" ]
end

View file

@ -1,6 +1,6 @@
module Rails
module Command
class PluginCommand < Base
class PluginCommand < Base # :nodoc:
hide_command!
def help

View file

@ -1,6 +1,6 @@
module Rails
module Command
class RakeCommand < Base
class RakeCommand < Base # :nodoc:
extend Rails::Command::Actions
namespace "rake"

View file

@ -1,6 +1,6 @@
module Rails
module Command
class RunnerCommand < Base
class RunnerCommand < Base # :nodoc:
class_option :environment, aliases: "-e", type: :string,
default: Rails::Command.environment.dup,
desc: "The environment for the runner to operate under (test/development/production)"

View file

@ -139,8 +139,8 @@ module Rails
end
module Command
class ServerCommand < Base
def help # :nodoc:
class ServerCommand < Base # :nodoc:
def help
puts Rails::Server::Options.new.option_parser(Hash.new)
end

View file

@ -3,8 +3,8 @@ require "rails/test_unit/minitest_plugin"
module Rails
module Command
class TestCommand < Base
def help # :nodoc:
class TestCommand < Base # :nodoc:
def help
perform # Hand over help printing to minitest.
end

View file

@ -1,6 +1,6 @@
module Rails
module Command
class VersionCommand < Base
class VersionCommand < Base # :nodoc:
def perform
Rails::Command.invoke :application, [ "--version" ]
end