#NEWLINE# @ click . command ( help = 'List Keeper records' ) #NEWLINE# @ click . pass_obj #NEWLINE# def list( params ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# api . sync_down ( params ) #NEWLINE# if ( len ( params . record_cache ) == 0 ) : #NEWLINE# #INDENT# print ( 'No records' ) #NEWLINE# return #NEWLINE# #UNINDENT# results = api . search_records ( params , '' ) #NEWLINE# display . formatted_records ( params ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise click . ClickException ( e )