DannyBen/bashly

View on GitHub
lib/bashly/commands/preview.rb

Summary

Maintainability
A
0 mins
Test Coverage
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