Sha256: c207add1e52e5f3526f78512f9581a9f305bc75ae1afc3ca38b2ae136c6b5415

Contents?: true

Size: 516 Bytes

Versions: 13

Compression:

Stored size: 516 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

    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

13 entries across 13 versions & 1 rubygems

Version Path
cpl-1.1.2 lib/command/env.rb
cpl-1.1.2.rc.0 lib/command/env.rb
cpl-1.1.1 lib/command/env.rb
cpl-1.1.0 lib/command/env.rb
cpl-1.0.4 lib/command/env.rb
cpl-1.0.3 lib/command/env.rb
cpl-1.0.2 lib/command/env.rb
cpl-1.0.1 lib/command/env.rb
cpl-1.0.0 lib/command/env.rb
cpl-0.7.0 lib/command/env.rb
cpl-0.6.0 lib/command/env.rb
cpl-0.5.1 lib/command/env.rb
cpl-0.5.0 lib/command/env.rb