Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jul 25, 2023
1 parent 6e46be7 commit fb47b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion defaultActions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestActionFlags(t *testing.T) {

cmd.Flag("alpha").Changed = true
a := actionFlags(cmd).Invoke(Context{Value: "-a"})
assertEqual(t, ActionValuesDescribed("b", "", "h", "help for this command").Tag("flags").NoSpace().Invoke(Context{}).Prefix("-a"), a)
assertEqual(t, ActionValuesDescribed("b", "", "h", "help for this command").Tag("flags").NoSpace('b', 'h').Invoke(Context{}).Prefix("-a"), a)
}

func TestActionExecCommandEnv(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions example/cmd/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestShorthandChain(t *testing.T) {
"o", style.Yellow,
"v", style.Blue,
).Prefix("-b").
NoSpace().
NoSpace('c', 'o').
Tag("flags"))

s.Run("chain", "-bc").
Expand All @@ -25,7 +25,7 @@ func TestShorthandChain(t *testing.T) {
"o", style.Yellow,
"v", style.Blue,
).Prefix("-bc").
NoSpace().
NoSpace('c', 'o').
Tag("flags"))

s.Run("chain", "-bcc").
Expand All @@ -34,15 +34,15 @@ func TestShorthandChain(t *testing.T) {
"o", style.Yellow,
"v", style.Blue,
).Prefix("-bcc").
NoSpace().
NoSpace('c', 'o').
Tag("flags"))

s.Run("chain", "-bcco").
Expect(carapace.ActionStyledValues(
"c", style.Default,
"v", style.Blue,
).Prefix("-bcco").
NoSpace().
NoSpace('c').
Tag("flags"))

s.Run("chain", "-bcco", "").
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestShorthandChain(t *testing.T) {
"c", style.Default,
"o", style.Yellow,
).Prefix("-c").
NoSpace().
NoSpace('c', 'o').
Tag("flags"))
})
}

0 comments on commit fb47b5b

Please sign in to comment.