bin/onering in onering-client-0.0.28 vs bin/onering in onering-client-0.0.29
- old
+ new
@@ -131,12 +131,13 @@
# FIND
devices.subcommand :find, "Finds all nodes that match a urlquery filter string" do |sc|
sc.arity = 1
sc.usage = "onering devices find FILTER"
+ sc.opt :format, '-t', '--format FORMAT', "Return the results as FORMAT"
sc.exec do
- print_format(api.find(sc[:args].first))
+ print_format(api.find(sc[:args].first), sc[:format])
end
end
# SAVE
devices.subcommand :save, "Creates or updates a new device in Onering, reading a JSON document from standard input" do |sc|
\ No newline at end of file