@@ -305,11 +305,11 @@ func TestConsoleOutput(t *testing.T) {
305305 expectedOutput : []string {
306306 "Analyzes an image using the specifed analyzers as indicated via --type flag(s)." ,
307307 "For details on how to specify images, run: container-diff help" ,
308- "container-diff analyze image [flags] " ,
309- "-c, --cache-dir string cache directory base to create .container-diff (default is $HOME). " ,
310- "-j, --json JSON Output defines if the diff should be returned in a human readable format (false) or a JSON (true). " ,
311- "-w, --output string output file to write to (default writes to the screen). " ,
312- "-t, --type multiValueFlag This flag sets the list of analyzer types to use. " ,
308+ "container-diff" ,
309+ "-c, --cache-dir string" ,
310+ "-j, --json" ,
311+ "-w, --output string" ,
312+ "-t, --type multiValueFlag" ,
313313 },
314314 },
315315 {
@@ -319,11 +319,11 @@ func TestConsoleOutput(t *testing.T) {
319319 expectedOutput : []string {
320320 "Analyzes an image using the specifed analyzers as indicated via --type flag(s)." ,
321321 "For details on how to specify images, run: container-diff help" ,
322- "container-diff analyze image [flags] " ,
323- "-c, --cache-dir string cache directory base to create .container-diff (default is $HOME). " ,
324- "-j, --json JSON Output defines if the diff should be returned in a human readable format (false) or a JSON (true). " ,
325- "-w, --output string output file to write to (default writes to the screen). " ,
326- "-t, --type multiValueFlag This flag sets the list of analyzer types to use. " ,
322+ "container-diff" ,
323+ "-c, --cache-dir string" ,
324+ "-j, --json" ,
325+ "-w, --output string" ,
326+ "-t, --type multiValueFlag" ,
327327 },
328328 },
329329 {
@@ -333,11 +333,11 @@ func TestConsoleOutput(t *testing.T) {
333333 expectedOutput : []string {
334334 "container-diff is a CLI tool for analyzing and comparing container images." ,
335335 "Images can be specified from either a local Docker daemon, or from a remote registry." ,
336- "analyze Analyzes an image: container-diff image " ,
337- "diff Compare two images: container-diff image1 image2 " ,
338- "--format string Format to output diff in. " ,
339- "--skip-tls-verify-registry multiValueFlag Insecure registry ignoring TLS verify to push and pull. Set it repeatedly for multiple registries. " ,
340- "-v, --verbosity string This flag controls the verbosity of container-diff. (default \" warning \" ) " ,
336+ "analyze" ,
337+ "diff" ,
338+ "--format string" ,
339+ "--skip-tls-verify-registry multiValueFlag" ,
340+ "-v, --verbosity string" ,
341341 },
342342 },
343343 {
@@ -347,11 +347,11 @@ func TestConsoleOutput(t *testing.T) {
347347 expectedOutput : []string {
348348 "container-diff is a CLI tool for analyzing and comparing container images." ,
349349 "Images can be specified from either a local Docker daemon, or from a remote registry." ,
350- "analyze Analyzes an image: container-diff image " ,
351- "diff Compare two images: container-diff image1 image2 " ,
352- "--format string Format to output diff in. " ,
353- "--skip-tls-verify-registry multiValueFlag Insecure registry ignoring TLS verify to push and pull. Set it repeatedly for multiple registries. " ,
354- "-v, --verbosity string This flag controls the verbosity of container-diff. (default \" warning \" ) " ,
350+ "analyze" ,
351+ "diff" ,
352+ "--format string" ,
353+ "--skip-tls-verify-registry multiValueFlag" ,
354+ "-v, --verbosity string" ,
355355 },
356356 },
357357 {
@@ -362,10 +362,10 @@ func TestConsoleOutput(t *testing.T) {
362362 "Compares two images using the specifed analyzers as indicated via --type flag(s)." ,
363363 "For details on how to specify images, run: container-diff help" ,
364364 "container-diff diff image1 image2 [flags]" ,
365- "-c, --cache-dir string cache directory base to create .container-diff (default is $HOME). " ,
366- "-j, --json JSON Output defines if the diff should be returned in a human readable format (false) or a JSON (true). " ,
367- "-w, --output string output file to write to (default writes to the screen). " ,
368- "--skip-tls-verify-registry multiValueFlag Insecure registry ignoring TLS verify to push and pull. Set it repeatedly for multiple registries. " ,
365+ "-c, --cache-dir string" ,
366+ "-j, --json" ,
367+ "-w, --output string" ,
368+ "--skip-tls-verify-registry multiValueFlag" ,
369369 },
370370 },
371371 {
@@ -375,10 +375,10 @@ func TestConsoleOutput(t *testing.T) {
375375 expectedOutput : []string {
376376 "Error: 'diff' requires two images as arguments: container-diff diff [image1] [image2]" ,
377377 "container-diff diff image1 image2 [flags]" ,
378- "-c, --cache-dir string cache directory base to create .container-diff (default is $HOME). " ,
379- "-j, --json JSON Output defines if the diff should be returned in a human readable format (false) or a JSON (true). " ,
380- "-w, --output string output file to write to (default writes to the screen). " ,
381- "--skip-tls-verify-registry multiValueFlag Insecure registry ignoring TLS verify to push and pull. Set it repeatedly for multiple registries. " ,
378+ "-c, --cache-dir string" ,
379+ "-j, --json" ,
380+ "-w, --output string" ,
381+ "--skip-tls-verify-registry multiValueFlag" ,
382382 },
383383 producesError : true ,
384384 },
0 commit comments