Sha256: 8431db57a8ec4b49cb7de6e0411f3b124bb6d1c7a14cdfc2dffbef4fdce31588

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

require 'lino'
require_relative 'base'

module RubyTerraform
  module Commands
    class Show < Base
      def configure_command(builder, opts)
        no_color = opts[:no_color]
        module_depth = opts[:module_depth]
        builder
          .with_subcommand('show') do |sub|
          sub = sub.with_option('-module-depth', module_depth) if module_depth
          sub = sub.with_flag('-no-color') if no_color
          sub
        end
          .with_argument(opts[:directory])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-terraform-0.31.0.pre.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.31.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.30.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.29.0.pre.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.29.0.pre.pre.1 lib/ruby_terraform/commands/show.rb