From 685bcd20385c948990937f80a2e6aa8d291e930e Mon Sep 17 00:00:00 2001 From: Ahmad ATWI Date: Wed, 14 Aug 2024 10:26:03 +0200 Subject: [PATCH] [#674] Transform flavor from string to enum - Rename nice to relaxed - Rename original to btcr --- src/config/param_variant.go | 4 ++-- src/config/tcr_config_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/param_variant.go b/src/config/param_variant.go index 2d85eeae..5d320c67 100644 --- a/src/config/param_variant.go +++ b/src/config/param_variant.go @@ -38,13 +38,13 @@ func AddVariantParam(cmd *cobra.Command) *StringParam { cobraSettings: cobraSettings{ name: "variant", shorthand: "r", - usage: "indicate the variant to be used by TCR: nice (default) or original", + usage: "indicate the variant to be used by TCR: relaxed (default) or btcr", persistent: true, }, }, v: paramValueString{ value: "", - defaultValue: "nice", + defaultValue: "relaxed", }, } param.addToCommand(cmd) diff --git a/src/config/tcr_config_test.go b/src/config/tcr_config_test.go index 8e75b23c..8e3071ce 100644 --- a/src/config/tcr_config_test.go +++ b/src/config/tcr_config_test.go @@ -244,7 +244,7 @@ func Test_show_tcr_config_with_default_values(t *testing.T) { fmt.Sprintf("%v.tcr.language: %v", prefix, ""), fmt.Sprintf("%v.tcr.toolchain: %v", prefix, ""), fmt.Sprintf("%v.tcr.trace: %v", prefix, "none"), - fmt.Sprintf("%v.tcr.variant: %v", prefix, "nice"), + fmt.Sprintf("%v.tcr.variant: %v", prefix, "relaxed"), fmt.Sprintf("%v.vcs.name: %v", prefix, "git"), } utils.AssertSimpleTrace(t, expected,