From c76419e0102a45bbb415cdbbcf5397a557a6b838 Mon Sep 17 00:00:00 2001 From: dtheyer Date: Fri, 1 Nov 2024 13:44:07 -0700 Subject: [PATCH 1/3] Add cli flag for specifying bundle mode --- bin/taste-tester | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/taste-tester b/bin/taste-tester index 814d4cd..1a7fec5 100755 --- a/bin/taste-tester +++ b/bin/taste-tester @@ -409,6 +409,15 @@ MODES: ) do options[:skip_post_test_hook] = true end + + opts.on( + "-b", "--bundle BUNDLE_SETTING", ['true', 'false', 'compatible'], "Bundle mode setting" + ) do |bundle_setting| + if ['true', 'false'].include?(bundle_setting) + bundle_setting = bundle_setting == 'true' + end + options[:bundle] = bundle_setting + end end if mode == 'help' From 7dc8ddd217403b069b539a3f90b458aa00cd46d9 Mon Sep 17 00:00:00 2001 From: David Heyer Date: Fri, 1 Nov 2024 14:26:53 -0700 Subject: [PATCH 2/3] fix lints --- bin/taste-tester | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/taste-tester b/bin/taste-tester index 1a7fec5..d209170 100755 --- a/bin/taste-tester +++ b/bin/taste-tester @@ -411,11 +411,11 @@ MODES: end opts.on( - "-b", "--bundle BUNDLE_SETTING", ['true', 'false', 'compatible'], "Bundle mode setting" + '-b', '--bundle BUNDLE_SETTING', ['true', 'false', 'compatible'], 'Bundle mode setting' ) do |bundle_setting| - if ['true', 'false'].include?(bundle_setting) - bundle_setting = bundle_setting == 'true' - end + if ['true', 'false'].include?(bundle_setting) + bundle_setting = bundle_setting == 'true' + end options[:bundle] = bundle_setting end end From 3b7b1e30e0b0091979db06c03b798151ea993c9e Mon Sep 17 00:00:00 2001 From: David Heyer Date: Fri, 1 Nov 2024 14:31:13 -0700 Subject: [PATCH 3/3] fix indentation --- bin/taste-tester | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/taste-tester b/bin/taste-tester index d209170..0473c11 100755 --- a/bin/taste-tester +++ b/bin/taste-tester @@ -416,7 +416,7 @@ MODES: if ['true', 'false'].include?(bundle_setting) bundle_setting = bundle_setting == 'true' end - options[:bundle] = bundle_setting + options[:bundle] = bundle_setting end end