Sha256: b8593d308d4fd6a53b88e7b0452f0411d384369d92bb87e3004e85e29b3d69a7

Contents?: true

Size: 668 Bytes

Versions: 24

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

require 'lino'
require_relative 'base'

module RubyTerraform
  module Commands
    class Show < Base
      def configure_command(builder, opts)
        path = opts[:path] || opts[:directory]
        json_format = opts[:json]
        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 = sub.with_flag('-json') if json_format
          sub
        end
          .with_argument(path)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ruby-terraform-0.64.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.63.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.62.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.61.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.60.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.59.0.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.59.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.58.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.57.0.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.57.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.56.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.55.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.54.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.53.0.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.53.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.52.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.51.0.pre.3 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.51.0.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.51.0.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.50.0 lib/ruby_terraform/commands/show.rb