Sha256: e2d3c7a9acc516a997208ce423803f4a769dd3bed2974776dda9305161f349d4

Contents?: true

Size: 519 Bytes

Versions: 4

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module MuxTf
  module Cli
    extend PiotrbCliUtils::Util

    def self.run(mode, args)
      case mode
      when :mux
        require_relative "cli/mux"
        MuxTf::Cli::Mux.run(args)
      when :current
        require_relative "cli/current"
        MuxTf::Cli::Current.run(args)
      when :plan_summary
        require_relative "cli/plan_summary"
        MuxTf::Cli::PlanSummary.run(args)
      else
        fail_with "unhandled mode: #{mode.inspect}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mux_tf-0.15.0 lib/mux_tf/cli.rb
mux_tf-0.14.2 lib/mux_tf/cli.rb
mux_tf-0.14.1 lib/mux_tf/cli.rb
mux_tf-0.14.0 lib/mux_tf/cli.rb