mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(maint) Add --user CLI option on delete and list subcommands
To support usage without a configuration file.
This commit is contained in:
parent
8341a5f45d
commit
9a44cc480e
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue