lib/bashly/commands/preview.rb
module Bashly
module Commands
class Preview < Base
help 'Generate the bash script to STDOUT'
usage 'bashly preview'
usage 'bashly preview (-h|--help)'
def run
with_valid_config do
command = Script::Command.new config
script = Script::Wrapper.new command
puts script.code
end
end
end
end
end