Skip to content

Commit

Permalink
[#674] Transform flavor from string to enum
Browse files Browse the repository at this point in the history
- Rename nice to relaxed
- Rename original to btcr
  • Loading branch information
aatwi authored and mengdaming committed Oct 1, 2024
1 parent 89bdce0 commit 685bcd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/param_variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/config/tcr_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 685bcd2

Please sign in to comment.