@@ -95,73 +95,86 @@ func TestRunCLI(t *testing.T) {
9595 {
9696 name : "No Arguments" ,
9797 args : []string {},
98- expectedOutput : "╭────────────────────────────────────────────────────────╮\n " +
99- "│Welcome! This tool displays data related to Pokémon! │\n " +
100- "│ │\n " +
101- "│ USAGE: │\n " +
102- "│ poke-cli [flag] │\n " +
103- "│ poke-cli <command> [flag] │\n " +
104- "│ poke-cli <command> <subcommand> [flag] │\n " +
105- "│ │\n " +
106- "│ FLAGS: │\n " +
107- "│ -h, --help Shows the help menu │\n " +
108- "│ -l, --latest Prints the latest version available │\n " +
109- "│ -v, --version Prints the current version │\n " +
110- "│ │\n " +
111- "│ COMMANDS: │\n " +
112- "│ ability Get details about an ability │\n " +
113- "│ natures Get details about all natures │\n " +
114- "│ pokemon Get details about a Pokémon │\n " +
115- "│ types Get details about a typing │\n " +
116- "╰────────────────────────────────────────────────────────╯\n " ,
98+ expectedOutput : "╭──────────────────────────────────────────────────────────╮\n " +
99+ "│Welcome! This tool displays data related to Pokémon! │\n " +
100+ "│ │\n " +
101+ "│ USAGE: │\n " +
102+ "│ poke-cli [flag] │\n " +
103+ "│ poke-cli <command> [flag] │\n " +
104+ "│ poke-cli <command> <subcommand> [flag] │\n " +
105+ "│ │\n " +
106+ "│ FLAGS: │\n " +
107+ "│ -h, --help Shows the help menu │\n " +
108+ "│ -l, --latest Prints the latest version available │\n " +
109+ "│ -v, --version Prints the current version │\n " +
110+ "│ │\n " +
111+ "│ COMMANDS: │\n " +
112+ "│ ability Get details about an ability │\n " +
113+ "│ natures Get details about all natures │\n " +
114+ "│ pokemon Get details about a Pokémon │\n " +
115+ "│ types Get details about a typing │\n " +
116+ "│ │\n " +
117+ "│ hint: when calling a resource with a space, use a hyphen │\n " +
118+ "│ example: poke-cli ability strong-jaw │\n " +
119+ "│ example: poke-cli pokemon flutter-mane │\n " +
120+ "╰──────────────────────────────────────────────────────────╯" ,
117121 expectedCode : 0 ,
118122 },
119123 {
120124 name : "Help Flag Short" ,
121125 args : []string {"-h" },
122- expectedOutput : "╭────────────────────────────────────────────────────────╮\n " +
123- "│Welcome! This tool displays data related to Pokémon! │\n " +
124- "│ │\n " +
125- "│ USAGE: │\n " +
126- "│ poke-cli [flag] │\n " +
127- "│ poke-cli <command> [flag] │\n " +
128- "│ poke-cli <command> <subcommand> [flag] │\n " +
129- "│ │\n " +
130- "│ FLAGS: │\n " +
131- "│ -h, --help Shows the help menu │\n " +
132- "│ -l, --latest Prints the latest version available │\n " +
133- "│ -v, --version Prints the current version │\n " +
134- "│ │\n " +
135- "│ COMMANDS: │\n " +
136- "│ ability Get details about an ability │\n " +
137- "│ natures Get details about all natures │\n " +
138- "│ pokemon Get details about a Pokémon │\n " +
139- "│ types Get details about a typing │\n " +
140- "╰────────────────────────────────────────────────────────╯\n " ,
126+ expectedOutput : "╭──────────────────────────────────────────────────────────╮\n " +
127+ "│Welcome! This tool displays data related to Pokémon! │\n " +
128+ "│ │\n " +
129+ "│ USAGE: │\n " +
130+ "│ poke-cli [flag] │\n " +
131+ "│ poke-cli <command> [flag] │\n " +
132+ "│ poke-cli <command> <subcommand> [flag] │\n " +
133+ "│ │\n " +
134+ "│ FLAGS: │\n " +
135+ "│ -h, --help Shows the help menu │\n " +
136+ "│ -l, --latest Prints the latest version available │\n " +
137+ "│ -v, --version Prints the current version │\n " +
138+ "│ │\n " +
139+ "│ COMMANDS: │\n " +
140+ "│ ability Get details about an ability │\n " +
141+ "│ natures Get details about all natures │\n " +
142+ "│ pokemon Get details about a Pokémon │\n " +
143+ "│ types Get details about a typing │\n " +
144+ "│ │\n " +
145+ "│ hint: when calling a resource with a space, use a hyphen │\n " +
146+ "│ example: poke-cli ability strong-jaw │\n " +
147+ "│ example: poke-cli pokemon flutter-mane │\n " +
148+ "╰──────────────────────────────────────────────────────────╯" ,
141149 expectedCode : 0 ,
142150 },
143151 {
144152 name : "Help Flag Long" ,
145153 args : []string {"--help" },
146- expectedOutput : "╭────────────────────────────────────────────────────────╮\n " +
147- "│Welcome! This tool displays data related to Pokémon! │\n " +
148- "│ │\n " +
149- "│ USAGE: │\n " +
150- "│ poke-cli [flag] │\n " +
151- "│ poke-cli <command> [flag] │\n " +
152- "│ poke-cli <command> <subcommand> [flag] │\n " +
153- "│ │\n " +
154- "│ FLAGS: │\n " +
155- "│ -h, --help Shows the help menu │\n " +
156- "│ -l, --latest Prints the latest version available │\n " +
157- "│ -v, --version Prints the current version │\n " +
158- "│ │\n " +
159- "│ COMMANDS: │\n " +
160- "│ ability Get details about an ability │\n " +
161- "│ natures Get details about all natures │\n " +
162- "│ pokemon Get details about a Pokémon │\n " +
163- "│ types Get details about a typing │\n " +
164- "╰────────────────────────────────────────────────────────╯\n " ,
154+ expectedOutput : "╭──────────────────────────────────────────────────────────╮\n " +
155+ "│Welcome! This tool displays data related to Pokémon! │\n " +
156+ "│ │\n " +
157+ "│ USAGE: │\n " +
158+ "│ poke-cli [flag] │\n " +
159+ "│ poke-cli <command> [flag] │\n " +
160+ "│ poke-cli <command> <subcommand> [flag] │\n " +
161+ "│ │\n " +
162+ "│ FLAGS: │\n " +
163+ "│ -h, --help Shows the help menu │\n " +
164+ "│ -l, --latest Prints the latest version available │\n " +
165+ "│ -v, --version Prints the current version │\n " +
166+ "│ │\n " +
167+ "│ COMMANDS: │\n " +
168+ "│ ability Get details about an ability │\n " +
169+ "│ natures Get details about all natures │\n " +
170+ "│ pokemon Get details about a Pokémon │\n " +
171+ "│ types Get details about a typing │\n " +
172+ "│ │\n " +
173+ "│ hint: when calling a resource with a space, use a hyphen │\n " +
174+ "│ example: poke-cli ability strong-jaw │\n " +
175+ "│ example: poke-cli pokemon flutter-mane │\n " +
176+ "╰──────────────────────────────────────────────────────────╯" ,
177+
165178 expectedCode : 0 ,
166179 },
167180 {
@@ -173,7 +186,7 @@ func TestRunCLI(t *testing.T) {
173186 {
174187 name : "Latest Flag" ,
175188 args : []string {"-l" },
176- expectedOutput : "Latest Docker image version: v0.12.2 \n Latest release tag: v0.12.2 \n " ,
189+ expectedOutput : "Latest Docker image version: v1.0.0 \n Latest release tag: v1.0.0 \n " ,
177190 expectedCode : 0 ,
178191 },
179192 }
0 commit comments