#NEWLINE# @ argh_named ( 'show' ) #NEWLINE# @ arg_verbose #NEWLINE# @ arg_full_match #NEWLINE# @ arg_target_nodes_0_to_n #NEWLINE# @ arg_flag ( '-B' , '--buckets' , dest = 'show_buckets' , help = 'show dynamic buckets' ) #NEWLINE# @ arg_flag ( '--raw' , dest = 'show_raw' , help = 'show raw templates' ) #NEWLINE# @ arg_flag ( '-d' , '--diff' , dest = 'show_diff' , help = 'show raw template vs. rendered output diff' ) #NEWLINE# @ arg_config_pattern #NEWLINE# @ arg_tag #NEWLINE# @ expects_obj #NEWLINE# def handle_show( self , arg ) : #NEWLINE# #INDENT# 'render and show node config files' #NEWLINE# confman = self . get_confman ( arg . root_dir , reset_cache = False ) #NEWLINE# ( manager , stats ) = self . verify_op ( confman , arg . nodes , show = ( not arg . show_buckets ) , full_match = arg . full_match , raw = arg . show_raw , color = arg . color , show_diff = arg . show_diff , exclude = arg . exclude , config_patterns = arg . config , tag = arg . tag ) #NEWLINE# if arg . show_buckets : #NEWLINE# #INDENT# for ( name , items ) in manager . buckets . items ( ) : #NEWLINE# #INDENT# for ( i , item ) in enumerate ( items ) : #NEWLINE# #INDENT# print ( ( '%s #%d: %r' % ( name , i , item ) ) )