Sha256: 1389545151a9795fc2632a2e9559faf73bf6a145697ccffd6cbede1bc9a26491
Contents?: true
Size: 530 Bytes
Versions: 4
Compression:
Stored size: 530 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_and_ensure.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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cpl-0.3.3 | lib/command/env.rb |
cpl-0.3.2 | lib/command/env.rb |
cpl-0.3.1 | lib/command/env.rb |
cpl-0.3.0 | lib/command/env.rb |