@@ -305,11 +305,11 @@ func TestConsoleOutput(t *testing.T) {
305
305
expectedOutput : []string {
306
306
"Analyzes an image using the specifed analyzers as indicated via --type flag(s)." ,
307
307
"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" ,
313
313
},
314
314
},
315
315
{
@@ -319,11 +319,11 @@ func TestConsoleOutput(t *testing.T) {
319
319
expectedOutput : []string {
320
320
"Analyzes an image using the specifed analyzers as indicated via --type flag(s)." ,
321
321
"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" ,
327
327
},
328
328
},
329
329
{
@@ -333,11 +333,11 @@ func TestConsoleOutput(t *testing.T) {
333
333
expectedOutput : []string {
334
334
"container-diff is a CLI tool for analyzing and comparing container images." ,
335
335
"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" ,
341
341
},
342
342
},
343
343
{
@@ -347,11 +347,11 @@ func TestConsoleOutput(t *testing.T) {
347
347
expectedOutput : []string {
348
348
"container-diff is a CLI tool for analyzing and comparing container images." ,
349
349
"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" ,
355
355
},
356
356
},
357
357
{
@@ -362,10 +362,10 @@ func TestConsoleOutput(t *testing.T) {
362
362
"Compares two images using the specifed analyzers as indicated via --type flag(s)." ,
363
363
"For details on how to specify images, run: container-diff help" ,
364
364
"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" ,
369
369
},
370
370
},
371
371
{
@@ -375,10 +375,10 @@ func TestConsoleOutput(t *testing.T) {
375
375
expectedOutput : []string {
376
376
"Error: 'diff' requires two images as arguments: container-diff diff [image1] [image2]" ,
377
377
"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" ,
382
382
},
383
383
producesError : true ,
384
384
},
0 commit comments