提交 83776676 编写于 作者: K Kasper Timm Hansen

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.
上级 86bf5ada
......@@ -13,7 +13,7 @@ def self.exit_on_failure?
end
module Command
class ApplicationCommand < Base
class ApplicationCommand < Base # :nodoc:
hide_command!
def help
......
......@@ -64,7 +64,7 @@ def start
end
module Command
class ConsoleCommand < Base
class ConsoleCommand < Base # :nodoc:
include EnvironmentArgument
class_option :sandbox, aliases: "-s", type: :boolean, default: false,
......
......@@ -134,7 +134,7 @@ def find_cmd_and_exec(commands, *args)
end
module Command
class DbconsoleCommand < Base
class DbconsoleCommand < Base # :nodoc:
include EnvironmentArgument
class_option :include_password, aliases: "-p", type: :boolean,
......
......@@ -2,8 +2,8 @@
module Rails
module Command
class DestroyCommand < Base
def help # :nodoc:
class DestroyCommand < Base # :nodoc:
def help
Rails::Generators.help self.class.command_name
end
......
......@@ -2,8 +2,8 @@
module Rails
module Command
class GenerateCommand < Base
def help # :nodoc:
class GenerateCommand < Base # :nodoc:
def help
Rails::Generators.help self.class.command_name
end
......
module Rails
module Command
class HelpCommand < Base
class HelpCommand < Base # :nodoc:
hide_command!
def help(*)
......
module Rails
module Command
class NewCommand < Base
class NewCommand < Base # :nodoc:
def help
Rails::Command.invoke :application, [ "--help" ]
end
......
module Rails
module Command
class PluginCommand < Base
class PluginCommand < Base # :nodoc:
hide_command!
def help
......
module Rails
module Command
class RakeCommand < Base
class RakeCommand < Base # :nodoc:
extend Rails::Command::Actions
namespace "rake"
......
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)"
......
......@@ -139,8 +139,8 @@ def restart_command
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
......
......@@ -3,8 +3,8 @@
module Rails
module Command
class TestCommand < Base
def help # :nodoc:
class TestCommand < Base # :nodoc:
def help
perform # Hand over help printing to minitest.
end
......
module Rails
module Command
class VersionCommand < Base
class VersionCommand < Base # :nodoc:
def perform
Rails::Command.invoke :application, [ "--version" ]
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册