Sha256: e951b0e3662f1d664a1d993b61b904b964a168d2bcea067cbc870179ed193c52

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 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(:has_finished, 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.51.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-0.50.0 lib/tetra/ui/generate_script_subcommand.rb