def do_ip(args): for a, b in Cluster().ip(): print(a, "=>", b)
def do_ls(args): Cluster().ls()
def do_lsn(args): Cluster().lsn()
def do_open(args): node_number = args.pop_parameter() Cluster().open(node_number)
def do_stop(args): Cluster().stop()
def do_start(args): Cluster().start()
def do_rm(args): Cluster().rm()
def do_new(args): clustername = args.pop_parameter() qtt = int(args.pop_parameter()) outfolder = args.pop_parameter() if args.has_next() else "." Cluster().new(clustername, qtt, outfolder)