From 97c039459c407d5b22fe8cfc6aaad37f8078999d Mon Sep 17 00:00:00 2001 From: Federico Luzzi Date: Fri, 27 Oct 2023 13:34:32 -0300 Subject: [PATCH] add completion for new features --- connpy/_version.py | 2 +- connpy/completion.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/connpy/_version.py b/connpy/_version.py index 4170515..936bd8b 100644 --- a/connpy/_version.py +++ b/connpy/_version.py @@ -1,2 +1,2 @@ -__version__ = "3.6.0" +__version__ = "3.6.1" diff --git a/connpy/completion.py b/connpy/completion.py index 0bad8ff..863562b 100755 --- a/connpy/completion.py +++ b/connpy/completion.py @@ -104,6 +104,10 @@ def main(): elif wordsnumber >= 4 and words[0] == "export" and words[1] != "--help": strings = [item for item in folders if not any(word in item for word in words[:-1])] + elif wordsnumber >= 4 and words[0] in ["list", "ls"] and words[1] == "nodes": + options = ["--format", "--filter"] + strings = [item for item in options if not any(word in item for word in words[:-1])] + elif wordsnumber == 4: strings=[] if words[0] == "profile" and words[1] in ["--rm", "--del", "-r", "--mod", "--edit", "-e", "--show", "-s"]: @@ -116,6 +120,8 @@ def main(): strings=["true", "false"] if words[0] == "config" and words[1] in ["--configfolder"]: strings=_getcwd(words,words[0],True) + else: + exit() if app == "bash":