lib/cf/cli/app/env.rb in cf-4.2.9.rc5 vs lib/cf/cli/app/env.rb in cf-4.2.10.rc1
- old
+ new
@@ -3,11 +3,11 @@
module CF::App
class Env < Base
VALID_ENV_VAR = /^[a-zA-Za-z_][[:alnum:]_]*$/
desc "Show all environment variables set for an app"
- group :apps, :info, :hidden => true
+ group :apps, :info
input :app, :desc => "Application to inspect the environment of",
:argument => true, :from_given => by_name(:app)
def env
app = input[:app]
@@ -22,11 +22,11 @@
line "#{c(name, :name)}: #{val}"
end
end
desc "Set an environment variable"
- group :apps, :info, :hidden => true
+ group :apps, :info
input :app, :desc => "Application to set the variable for",
:argument => true, :from_given => by_name(:app)
input :name, :desc => "Variable name", :argument => true
input :value, :desc => "Variable value", :argument => :optional
input :restart, :desc => "Restart app after updating?", :default => true
@@ -54,10 +54,10 @@
end
end
desc "Remove an environment variable"
- group :apps, :info, :hidden => true
+ group :apps, :info
input :app, :desc => "Application to set the variable for",
:argument => true, :from_given => by_name(:app)
input :name, :desc => "Variable name", :argument => true
input :restart, :desc => "Restart app after updating?", :default => true
def unset_env