Sha256: 3601b70d8cc7b2e522634a62317d1b25aab03ef543bc41717c5da2e0093e31c9
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 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.gvc_get.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.2.0 | lib/command/env.rb |
cpl-0.1.0 | lib/command/env.rb |