Sha256: 02460a50e8a65f7c1094170940f02773d1717db984d637d8b3267da8519fde4f

Contents?: true

Size: 580 Bytes

Versions: 19

Compression:

Stored size: 580 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]
        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(path)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ruby-terraform-0.46.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.45.0.pre.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.45.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.44.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.43.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.42.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.41.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.40.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.39.0.pre.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.39.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.38.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.37.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.36.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.35.0.pre.pre.2 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.35.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.34.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.33.0.pre.pre.1 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.32.0 lib/ruby_terraform/commands/show.rb
ruby-terraform-0.31.0.pre.pre.3 lib/ruby_terraform/commands/show.rb