Sha256: d2bfd5a936b161fcb94286f42c1f69891f3abecb1a3248533948cc4adae38959

Contents?: true

Size: 545 Bytes

Versions: 11

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

module Command
  class Env < Base
    NAME = "env"
    OPTIONS = [
      app_option(required: true)
    ].freeze
    DESCRIPTION = "Displays app-specific environment variables"
    LONG_DESCRIPTION = <<~DESC
      - Displays app-specific environment variables
    DESC
    WITH_INFO_HEADER = false

    def call
      cp.fetch_gvc!.dig("spec", "env").map do |prop|
        # NOTE: atm no special chars handling, consider adding if needed
        puts "#{prop['name']}=#{prop['value']}"
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
cpflow-4.0.1 lib/command/env.rb
cpflow-4.0.0 lib/command/env.rb
cpflow-3.0.1 lib/command/env.rb
cpflow-3.0.0 lib/command/env.rb
cpl-2.2.4 lib/command/env.rb
cpl-2.2.2 lib/command/env.rb
cpl-2.2.1 lib/command/env.rb
cpl-2.2.0 lib/command/env.rb
cpl-1.4.0 lib/command/env.rb
cpl-1.3.0 lib/command/env.rb
cpl-1.2.0 lib/command/env.rb