diff options
author | Tim Smith <tsmith@chef.io> | 2020-02-06 13:21:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 13:21:39 -0800 |
commit | 87adc90c25a56c575cde465a8fcdb1c78a1064b3 (patch) | |
tree | 0075f5ab3023edf5d070106de0a0aab57bca5cc4 | |
parent | 178721e4f44977ff2ef4bf58dcaba69698d81698 (diff) | |
parent | bcfeffc1448e78c796a982c856b91433ff5d0312 (diff) | |
download | chef-87adc90c25a56c575cde465a8fcdb1c78a1064b3.tar.gz |
Merge pull request #9342 from chef/chef_shell
Improve welcome text in chef-shell
-rw-r--r-- | lib/chef/shell.rb | 9 | ||||
-rw-r--r-- | lib/chef/shell/ext.rb | 8 |
2 files changed, 7 insertions, 10 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb index e5f7dc64b9..d22400176c 100644 --- a/lib/chef/shell.rb +++ b/lib/chef/shell.rb @@ -166,11 +166,10 @@ module Shell puts "run `help' for help, `exit' or ^D to quit." puts - puts "Ohai2u#{greeting}!" end def self.greeting - " #{Etc.getlogin}@#{Shell.session.node["fqdn"]}" + "#{Etc.getlogin}@#{Shell.session.node["fqdn"]}" rescue NameError, ArgumentError "" end @@ -263,7 +262,7 @@ module Shell option :standalone, short: "-a", long: "--standalone", - description: "standalone session", + description: "Standalone session", default: true, boolean: true @@ -277,7 +276,7 @@ module Shell option :client, short: "-z", long: "--client", - description: "#{Chef::Dist::CLIENT} session", + description: "#{Chef::Dist::PRODUCT} session", boolean: true option :solo_legacy_shell, @@ -295,7 +294,7 @@ module Shell option :chef_server_url, short: "-S CHEFSERVERURL", long: "--server CHEFSERVERURL", - description: "The #{Chef::Dist::PRODUCT} server URL", + description: "The #{Chef::Dist::SERVER_PRODUCT} URL", proc: nil option :version, diff --git a/lib/chef/shell/ext.rb b/lib/chef/shell/ext.rb index fd978e0aa7..8640216d45 100644 --- a/lib/chef/shell/ext.rb +++ b/lib/chef/shell/ext.rb @@ -204,16 +204,14 @@ module Shell else puts help_banner end - :ucanhaz_halp + :help end alias :halp :help desc "prints information about #{Chef::Dist::PRODUCT}" def version - puts "This is the #{Chef::Dist::SHELL}.\n" + - " #{Chef::Dist::PRODUCT} Version: #{::Chef::VERSION}\n" + - " #{Chef::Dist::WEBSITE}\n" + - " https://docs.chef.io/" + puts "Welcome to the #{Chef::Dist::SHELL} #{::Chef::VERSION}\n" + + "For usage see https://docs.chef.io/chef_shell.html" :ucanhaz_automation end alias :shell :version |