def paasta_list(args): """Print a list of Yelp services currently running :param args: argparse.Namespace obj created from sys.args by paasta_cli""" if args.print_instances: services = list_service_instances() elif args.all: services = list_services() else: services = list_paasta_services() for service in services: print service
def completer_clusters(prefix, parsed_args, **kwargs): service = parsed_args.service or guess_service_name() if service in list_services(): return list_clusters(service) else: return list_clusters()