Sha256: 7ba24a118a0c12cb13d558747d09774ecff6193ba887807db3822adb20ea5cbd

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-script
  class GenerateScriptSubcommand < Tetra::Subcommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          history = File.join(Dir.home, ".bash_history")
          result_path, conflict_count =
            Tetra::Package.new(project).to_script(history)
          print_generation_result(project, result_path, conflict_count)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tetra-0.49.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-0.48.0 lib/tetra/ui/generate_script_subcommand.rb