(maint) Add --user CLI option on delete and list subcommands

To support usage without a configuration file.
This commit is contained in:
Nate Wolfe 2020-08-24 12:11:06 -07:00
parent 8341a5f45d
commit 9a44cc480e
No known key found for this signature in database
GPG key ID: B2DE44E5E14C0F96

View file

@ -90,6 +90,7 @@ class Vmfloaty
c.option '--json', 'Prints information as JSON'
c.option '--token STRING', String, 'Token for pooler service'
c.option '--url STRING', String, 'URL of pooler service'
c.option '--user STRING', String, 'User to authenticate with'
c.action do |args, options|
verbose = options.verbose || config['verbose']
@ -212,6 +213,7 @@ class Vmfloaty
c.option '--json', 'Outputs hosts scheduled for deletion as JSON'
c.option '--token STRING', String, 'Token for pooler service'
c.option '--url STRING', String, 'URL of pooler service'
c.option '--user STRING', String, 'User to authenticate with'
c.action do |args, options|
verbose = options.verbose || config['verbose']
service = Service.new(options, config)