34 lines
		
	
	
		
			643 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			643 B
		
	
	
	
		
			Go
		
	
	
	
| package main
 | |
| 
 | |
| import (
 | |
| 	"github.com/urfave/cli"
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	imageSubCommands = []cli.Command{
 | |
| 		buildCommand,
 | |
| 		historyCommand,
 | |
| 		importCommand,
 | |
| 		inspectCommand,
 | |
| 		loadCommand,
 | |
| 		lsImagesCommand,
 | |
| 		//		pruneCommand,
 | |
| 		pullCommand,
 | |
| 		pushCommand,
 | |
| 		rmImageCommand,
 | |
| 		saveCommand,
 | |
| 		tagCommand,
 | |
| 	}
 | |
| 
 | |
| 	imageDescription = "Manage images"
 | |
| 	imageCommand     = cli.Command{
 | |
| 		Name:                   "image",
 | |
| 		Usage:                  "Manage images",
 | |
| 		Description:            imageDescription,
 | |
| 		ArgsUsage:              "",
 | |
| 		Subcommands:            imageSubCommands,
 | |
| 		UseShortOptionHandling: true,
 | |
| 		OnUsageError:           usageErrorHandler,
 | |
| 	}
 | |
| )
 |