提交 d1e0bc7c 编写于 作者: Y yuuji.yaginuma

Do not show credentials in generators help

Since credentials generator is executed via the credentials command and
does not need to be executed directly, so it is not necessary to show it in
help.
上级 be6e1b8f
......@@ -218,6 +218,7 @@ def sorted_groups
rails.delete("app")
rails.delete("plugin")
rails.delete("encrypted_secrets")
rails.delete("credentials")
hidden_namespaces.each { |n| groups.delete(n.to_s) }
......
......@@ -188,10 +188,11 @@ def with_bare_config
Rails::Command.send(:remove_const, "APP_PATH")
end
test "help does not show hidden namespaces" do
test "help does not show hidden namespaces and hidden commands" do
FileUtils.cd(rails_root) do
output = rails("generate", "--help")
assert_no_match "active_record:migration", output
assert_no_match "credentials", output
output = rails("destroy", "--help")
assert_no_match "active_record:migration", output
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册