@@ -38,67 +38,67 @@ func TestRunCLI(t *testing.T) {
3838 {
3939 name : "No Arguments" ,
4040 args : []string {},
41- expectedOutput : "╭──────────────────────────────────────────────────────╮\n " +
42- "│Welcome! This tool displays data related to Pokémon! │\n " +
43- "│ │\n " +
44- "│ USAGE: │\n " +
45- "│ poke-cli [flag] │\n " +
46- "│ poke-cli <command> [flag] │\n " +
47- "│ poke-cli <command> <subcommand> [flag] │\n " +
48- "│ │\n " +
49- "│ FLAGS: │\n " +
50- "│ -h, --help Shows the help menu │\n " +
51- "│ -l, --latest Prints the latest available │\n " +
52- "│ version of the program │\n " +
53- "│ │\n " +
54- "│ AVAILABLE COMMANDS: │\n " +
55- "│ pokemon Get details of a specific Pokémon │\n " +
56- "│ types Get details of a specific typing │\n " +
57- "╰──────────────────────────────────────────────────────╯\n " ,
41+ expectedOutput : "╭──────────────────────────────────────────────────────── ╮\n " +
42+ "│Welcome! This tool displays data related to Pokémon! │\n " +
43+ "│ │\n " +
44+ "│ USAGE: │\n " +
45+ "│ poke-cli [flag] │\n " +
46+ "│ poke-cli <command> [flag] │\n " +
47+ "│ poke-cli <command> <subcommand> [flag] │\n " +
48+ "│ │\n " +
49+ "│ FLAGS: │\n " +
50+ "│ -h, --help Shows the help menu │\n " +
51+ "│ -l, --latest Prints the latest version available │\n " +
52+ "│ -v, --version Prints the current version │\n " +
53+ "│ │\n " +
54+ "│ AVAILABLE COMMANDS: │\n " +
55+ "│ pokemon Get details of a specific Pokémon │\n " +
56+ "│ types Get details of a specific typing │\n " +
57+ "╰──────────────────────────────────────────────────────── ╯\n " ,
5858 expectedCode : 0 ,
5959 },
6060 {
6161 name : "Help Flag Short" ,
6262 args : []string {"-h" },
63- expectedOutput : "╭──────────────────────────────────────────────────────╮\n " +
64- "│Welcome! This tool displays data related to Pokémon! │\n " +
65- "│ │\n " +
66- "│ USAGE: │\n " +
67- "│ poke-cli [flag] │\n " +
68- "│ poke-cli <command> [flag] │\n " +
69- "│ poke-cli <command> <subcommand> [flag] │\n " +
70- "│ │\n " +
71- "│ FLAGS: │\n " +
72- "│ -h, --help Shows the help menu │\n " +
73- "│ -l, --latest Prints the latest available │\n " +
74- "│ version of the program │\n " +
75- "│ │\n " +
76- "│ AVAILABLE COMMANDS: │\n " +
77- "│ pokemon Get details of a specific Pokémon │\n " +
78- "│ types Get details of a specific typing │\n " +
79- "╰──────────────────────────────────────────────────────╯\n " ,
63+ expectedOutput : "╭──────────────────────────────────────────────────────── ╮\n " +
64+ "│Welcome! This tool displays data related to Pokémon! │\n " +
65+ "│ │\n " +
66+ "│ USAGE: │\n " +
67+ "│ poke-cli [flag] │\n " +
68+ "│ poke-cli <command> [flag] │\n " +
69+ "│ poke-cli <command> <subcommand> [flag] │\n " +
70+ "│ │\n " +
71+ "│ FLAGS: │\n " +
72+ "│ -h, --help Shows the help menu │\n " +
73+ "│ -l, --latest Prints the latest version available │\n " +
74+ "│ -v, --version Prints the current version │\n " +
75+ "│ │\n " +
76+ "│ AVAILABLE COMMANDS: │\n " +
77+ "│ pokemon Get details of a specific Pokémon │\n " +
78+ "│ types Get details of a specific typing │\n " +
79+ "╰──────────────────────────────────────────────────────── ╯\n " ,
8080 expectedCode : 0 ,
8181 },
8282 {
8383 name : "Help Flag Long" ,
8484 args : []string {"--help" },
85- expectedOutput : "╭──────────────────────────────────────────────────────╮\n " +
86- "│Welcome! This tool displays data related to Pokémon! │\n " +
87- "│ │\n " +
88- "│ USAGE: │\n " +
89- "│ poke-cli [flag] │\n " +
90- "│ poke-cli <command> [flag] │\n " +
91- "│ poke-cli <command> <subcommand> [flag] │\n " +
92- "│ │\n " +
93- "│ FLAGS: │\n " +
94- "│ -h, --help Shows the help menu │\n " +
95- "│ -l, --latest Prints the latest available │\n " +
96- "│ version of the program │\n " +
97- "│ │\n " +
98- "│ AVAILABLE COMMANDS: │\n " +
99- "│ pokemon Get details of a specific Pokémon │\n " +
100- "│ types Get details of a specific typing │\n " +
101- "╰──────────────────────────────────────────────────────╯\n " ,
85+ expectedOutput : "╭──────────────────────────────────────────────────────── ╮\n " +
86+ "│Welcome! This tool displays data related to Pokémon! │\n " +
87+ "│ │\n " +
88+ "│ USAGE: │\n " +
89+ "│ poke-cli [flag] │\n " +
90+ "│ poke-cli <command> [flag] │\n " +
91+ "│ poke-cli <command> <subcommand> [flag] │\n " +
92+ "│ │\n " +
93+ "│ FLAGS: │\n " +
94+ "│ -h, --help Shows the help menu │\n " +
95+ "│ -l, --latest Prints the latest version available │\n " +
96+ "│ -v, --version Prints the current version │\n " +
97+ "│ │\n " +
98+ "│ AVAILABLE COMMANDS: │\n " +
99+ "│ pokemon Get details of a specific Pokémon │\n " +
100+ "│ types Get details of a specific typing │\n " +
101+ "╰──────────────────────────────────────────────────────── ╯\n " ,
102102 expectedCode : 0 ,
103103 },
104104 {
0 commit comments