#NEWLINE# @ utils . arg ( 'container' , metavar = '<container>' , help = 'ID or name of the container to show.' ) #NEWLINE# @ utils . arg ( '--json' , action = 'store_true' , default = False , help = 'Print JSON representation of the container.' ) #NEWLINE# def do_container_show( cs , args ) : #NEWLINE# #INDENT# 'Show details of a container.' #NEWLINE# container = cs . containers . get ( args . container ) #NEWLINE# if args . json : #NEWLINE# #INDENT# print ( json . dumps ( args . _info ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _show_container ( container )