From 9a44cc480efda5d817665f44eaa67e87cb8db731 Mon Sep 17 00:00:00 2001 From: Nate Wolfe Date: Mon, 24 Aug 2020 12:11:06 -0700 Subject: [PATCH] (maint) Add --user CLI option on delete and list subcommands To support usage without a configuration file. --- lib/vmfloaty.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vmfloaty.rb b/lib/vmfloaty.rb index 7734778..b2fb65a 100644 --- a/lib/vmfloaty.rb +++ b/lib/vmfloaty.rb @@ -90,6 +90,7 @@ def run # rubocop:disable Metrics/AbcSize 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 @@ def run # rubocop:disable Metrics/AbcSize 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)