add build to main and as subcommand to image
add build as a local and remote-client command in the main podman menu. also ensure it is added to the image subcommands as well. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
		
							parent
							
								
									0cd2243596
								
							
						
					
					
						commit
						476ea5645e
					
				|  | @ -10,7 +10,6 @@ import ( | ||||||
| func getMainCommands() []*cobra.Command { | func getMainCommands() []*cobra.Command { | ||||||
| 	rootCommands := []*cobra.Command{ | 	rootCommands := []*cobra.Command{ | ||||||
| 		_attachCommand, | 		_attachCommand, | ||||||
| 		_buildCommand, |  | ||||||
| 		_commitCommand, | 		_commitCommand, | ||||||
| 		_createCommand, | 		_createCommand, | ||||||
| 		_diffCommand, | 		_diffCommand, | ||||||
|  | @ -54,7 +53,6 @@ func getMainCommands() []*cobra.Command { | ||||||
| // Commands that the local client implements
 | // Commands that the local client implements
 | ||||||
| func getImageSubCommands() []*cobra.Command { | func getImageSubCommands() []*cobra.Command { | ||||||
| 	return []*cobra.Command{ | 	return []*cobra.Command{ | ||||||
| 		_buildCommand, |  | ||||||
| 		_loadCommand, | 		_loadCommand, | ||||||
| 		_saveCommand, | 		_saveCommand, | ||||||
| 		_signCommand, | 		_signCommand, | ||||||
|  |  | ||||||
|  | @ -18,6 +18,7 @@ var ( | ||||||
| 
 | 
 | ||||||
| //imageSubCommands are implemented both in local and remote clients
 | //imageSubCommands are implemented both in local and remote clients
 | ||||||
| var imageSubCommands = []*cobra.Command{ | var imageSubCommands = []*cobra.Command{ | ||||||
|  | 	_buildCommand, | ||||||
| 	_historyCommand, | 	_historyCommand, | ||||||
| 	_imageExistsCommand, | 	_imageExistsCommand, | ||||||
| 	_imagesCommand, | 	_imagesCommand, | ||||||
|  |  | ||||||
|  | @ -30,6 +30,7 @@ var ( | ||||||
| // Commands that the remote and local client have
 | // Commands that the remote and local client have
 | ||||||
| // implemented.
 | // implemented.
 | ||||||
| var mainCommands = []*cobra.Command{ | var mainCommands = []*cobra.Command{ | ||||||
|  | 	_buildCommand, | ||||||
| 	_exportCommand, | 	_exportCommand, | ||||||
| 	_historyCommand, | 	_historyCommand, | ||||||
| 	_imagesCommand, | 	_imagesCommand, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue