Sha256: a553bf846ca3a5485ba8bbdc2458062104a54bb55e2a62b9a15721d5e149a2d1

Contents?: true

Size: 845 Bytes

Versions: 71

Compression:

Stored size: 845 Bytes

Contents

class Terraspace::CLI::Tfc
  class Runs < Terraspace::Command
    Help = Terraspace::CLI::Help
    Runs = Terraspace::Terraform::Tfc::Runs

    desc "list STACK", "List runs."
    long_desc Help.text("tfc:runs:list")
    option :format, desc: "Output formats: #{CliFormat.formats.join(', ')}"
    option :status, default: %w[pending planned], type: :array, desc: "Filter by statuses: pending, planned, all"
    def list(mod)
      Runs.new(options.merge(mod: mod)).list
    end

    desc "prune STACK", "Prune runs that are possible to cancel or discard."
    long_desc Help.text("tfc:runs:prune")
    option :noop, type: :boolean, desc: "Shows what would be cancelled/discarded."
    option :yes, aliases: :y, type: :boolean, desc: "bypass are you sure prompt"
    def prune(mod)
      Runs.new(options.merge(mod: mod)).prune
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.16 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.15 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.14 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.13 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.12 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.11 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.10 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.9 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.8 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.7 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.6 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.5 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.4 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.3 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.2 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.1 lib/terraspace/cli/tfc/runs.rb
terraspace-2.2.0 lib/terraspace/cli/tfc/runs.rb
terraspace-2.1.7 lib/terraspace/cli/tfc/runs.rb
terraspace-2.1.6 lib/terraspace/cli/tfc/runs.rb