lib/cloudstack-cli/cli.rb in cloudstack-cli-0.1.7 vs lib/cloudstack-cli/cli.rb in cloudstack-cli-0.2.0
- old
+ new
@@ -46,9 +46,14 @@
arg = arg.split('=')
params[arg[0]] = arg[1]
end
puts JSON.pretty_generate(client.send_request params)
end
+
+ # require subcommands
+ Dir[File.dirname(__FILE__) + '/commands/*.rb'].each do |command|
+ require command
+ end
desc "zone SUBCOMMAND ...ARGS", "Manage zones"
subcommand "zone", Zone
desc "project SUBCOMMAND ...ARGS", "Manage servers"
\ No newline at end of file