Sha256: 08b9e2f9ef68d2273c74a3f758a2ecc34be5f59d7ac10951ee3a7adcb4d9119d

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 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 = <<~HEREDOC
      - Displays app-specific environment variables
    HEREDOC

    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

2 entries across 2 versions & 1 rubygems

Version Path
cpl-0.4.1 lib/command/env.rb
cpl-0.4.0 lib/command/env.rb