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