Project

General

Profile

« Previous | Next » 

Revision 2136ea57

Added by Ohad Levy over 12 years ago

  • ID 2136ea5710972e91714c68f5d55c72d257ca5eb5

fixes typos in foreman cli

View differences:

extras/cli/foremancli
end
collections_filterable.each do |collection|
options[collection] = false
opts.on("--#{collection} [filter]", "Retreive a list of #{collection}") do |f|
opts.on("--#{collection} [filter]", "Retrieve a list of #{collection}") do |f|
options[collection] = f || true
end
end
collections.each do |collection|
options[collection] = false
opts.on("--#{collection}", "Retreive a list of #{collection}") do
opts.on("--#{collection}", "Retrieve a list of #{collection}") do
options[collection] = true
end
end
......
puts " FOREMAN_USER Foreman user"
puts " FOREMAN_PASSWORD Foreman password"
puts ""
puts " CLI options take precendence over ENVIRONMENT VARIABLES"
puts " CLI options take precedence over ENVIRONMENT VARIABLES"
puts ""
puts " FILTERS:"
puts ""
......
options.each do |collection, filter|
next unless filter
if filter == true
if filter
print_response(get_collection(collection))
else
print_response(search_collection(collection, filter))

Also available in: Unified diff