@@ -106,15 +106,6 @@ def parse
106106 # help text
107107 options [ :subcommand ] = nil unless COMMANDS . include? ( options [ :subcommand ] )
108108
109- if Bolt ::Util . first_run?
110- FileUtils . touch ( Bolt ::Util . first_runs_free )
111-
112- if options [ :subcommand ] . nil? && $stdout. isatty
113- welcome_message
114- raise Bolt ::CLIExit
115- end
116- end
117-
118109 # Update the parser for the subcommand (or lack thereof)
119110 parser . update
120111 puts parser . help
@@ -165,52 +156,6 @@ def parse
165156 end
166157 end
167158
168- # TODO: Move this to the parser.
169- #
170- # Print a welcome message when users first install Bolt and run `bolt`,
171- # `bolt help` or `bolt --help`.
172- #
173- private def welcome_message
174- bolt = <<~BOLT
175- `.::-`
176- `.-:///////-.`
177- `-:////:. `-:///:- /ooo. .ooo/
178- `.-:///::///:-` `-//: ymmm- :mmmy .---.
179- :///:-. `.:////. -//: ymmm- :mmmy +mmm+
180- ://. ///. -//: ymmm--/++/- `-/++/:` :mmmy-:smmms::-
181- ://. ://. .://: ymmmdmmmmmmdo` .smmmmmmmmh: :mmmysmmmmmmmms
182- ://. ://:///:-. ymmmh/--/hmmmy -mmmd/-.:hmmm+:mmmy.-smmms--.
183- ://:.` .-////:-` ymmm- ymmm:hmmm- `dmmm/mmmy +mmm+
184- `-:///:-..:///:-.` ymmm- ommm/dmmm` hmmm+mmmy +mmm+
185- `.-:////:-` ymmm+ /mmmm.ommms` /mmmh:mmmy +mmmo
186- `-.` ymmmmmhhmmmmd: ommmmhydmmmy`:mmmy -mmmmdhd
187- oyyy+shddhs/` .+shddhy+- -yyyo .ohddhs
188-
189-
190- BOLT
191- example_cmd = if Bolt ::Util . windows?
192- "Invoke-BoltCommand -Command 'hostname' -Targets localhost"
193- else
194- "bolt command run 'hostname' --target localhost"
195- end
196- prev_cmd = String . new ( "bolt" )
197- prev_cmd << " #{ @argv [ 0 ] } " unless @argv . empty?
198-
199- message = <<~MSG
200- 🎉 Welcome to OpenBolt #{ VERSION }
201- 😌 We're here to help bring order to the chaos
202- 📖 Find our documentation at https://bolt.guide
203- 🙋 Ask a question in #bolt on https://slack.puppet.com/
204- 🔩 Contribute at https://github.com/puppetlabs/bolt/
205- 💡 Not sure where to start? Try "#{ example_cmd } "
206-
207- We only print this message once. Run "#{ prev_cmd } " again for help text.
208- MSG
209-
210- $stdout. print "\033 [36m#{ bolt } \033 [0m"
211- $stdout. print message
212- end
213-
214159 # TODO: Move this to the parser.
215160 #
216161 # Validate the command. Ensure that the subcommand and action are
0 commit comments