We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1308a commit 39269f6Copy full SHA for 39269f6
cmd/natures.go
@@ -9,6 +9,8 @@ import (
9
"os"
10
)
11
12
+var osExit = os.Exit
13
+
14
func NaturesCommand() {
15
flag.Usage = func() {
16
helpMessage := styling.HelpBorder.Render(
@@ -28,7 +30,8 @@ func NaturesCommand() {
28
30
29
31
if err := ValidateNaturesArgs(os.Args); err != nil {
32
fmt.Println(err.Error())
- os.Exit(1)
33
+ osExit(1)
34
+ return
35
}
36
37
fmt.Println("Natures affect the growth of a Pokémon.\n" +
@@ -53,7 +56,7 @@ func NaturesCommand() {
53
56
Rows(chart...).
54
57
StyleFunc(func(row, col int) lipgloss.Style {
55
58
return lipgloss.NewStyle().
- Padding(0, 1) // This styles the border color
59
+ Padding(0, 1)
60
})
61
62
fmt.Println(t.Render())
0 commit comments