#NEWLINE# def do( args ) : #NEWLINE# #INDENT# 'Main entry point.' #NEWLINE# worktree = qisys . parsers . get_worktree ( args ) #NEWLINE# projects = qisys . parsers . get_projects ( worktree , args ) #NEWLINE# if ( not projects ) : #NEWLINE# #INDENT# ui . fatal ( 'Please specify at least one project' ) #NEWLINE# #UNINDENT# if ( args . maintainers_action == 'add' ) : #NEWLINE# #INDENT# to_call = add_maintainer #NEWLINE# #UNINDENT# if ( args . maintainers_action == 'list' ) : #NEWLINE# #INDENT# to_call = list_maintainers #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( args . maintainers_action == 'remove' ) : #NEWLINE# #INDENT# to_call = remove_maintainer #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( args . maintainers_action == 'clear' ) : #NEWLINE# #INDENT# to_call = clear_maintainers #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for project in worktree : #NEWLINE# #INDENT# to_call ( project , args )