prepare for nodes parallel

This commit is contained in:
2022-03-30 17:36:27 -03:00
parent 3b7bee233e
commit 59b38bb58a
3 changed files with 60 additions and 20 deletions

View File

@ -88,6 +88,10 @@ class connapp:
if args.action == "connect" or args.action == "debug":
if args.data == None:
matches = self.nodes
if len(matches) == 0:
print("There are no nodes created")
print("try: conn --help")
exit(9)
else:
if args.data.startswith("@"):
matches = list(filter(lambda k: args.data in k, self.nodes))