Sha256: ab9d6bc5b0ec84142b7b1d8d75605858643720776a261c4c0aea2460e3bbf543

Contents?: true

Size: 590 Bytes

Versions: 8

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

require 'lino'
require_relative 'base'

module RubyTerraform
  module Commands
    # Supports the `terraform show` directive
    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

8 entries across 8 versions & 1 rubygems

Version Path
ruby-terraform-0.27.0.pre.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.27.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.26.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.25.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.24.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.23.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.22.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.21.0.pre.pre.2 lib/ruby_terraform/commands/show.rb