# 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