Sha256: b793bec43af80393ed973b2cab60242a9b58e79e9a84ee5ed1d0582fdc9a1191
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
class Jets::CLI class Env < Jets::Thor::Base class_option :function, aliases: :n, default: "controller", desc: "Lambda Function name" desc "list", "List and show env vars" format_option(default: "dotenv") option :reveal, type: :boolean, default: false, desc: "Reveal values also" def list List.new(options).run end desc "get NAME", "Get env vars for function" def get(name) Get.new(options.merge(key: name)).run end desc "set VALUES", "Set env vars for function" yes_option def set(*values) Set.new(options.merge(values: values)).run end desc "unset NAMES", "Unset env vars for function" yes_option def unset(*names) Unset.new(options.merge(names: names)).run end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/cli/env.rb |
jets-6.0.4 | lib/jets/cli/env.rb |
jets-6.0.3 | lib/jets/cli/env.rb |
jets-6.0.2 | lib/jets/cli/env.rb |