From 3726dbed68e769acdef11e1eed3ceb1b5611bd01 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 15 Dec 2024 00:46:30 +0100 Subject: [PATCH] dev/list-plugins: deprecate Kind.UNKNOWN completely --- flake-modules/dev/list-plugins.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/flake-modules/dev/list-plugins.py b/flake-modules/dev/list-plugins.py index 1b8bdea9b3..cc050fa6db 100755 --- a/flake-modules/dev/list-plugins.py +++ b/flake-modules/dev/list-plugins.py @@ -47,10 +47,9 @@ class Kind(Enum): - UNKNOWN = 1 - NEOVIM = 2 - VIM = 3 - MISC = 4 + NEOVIM = 1 + VIM = 2 + MISC = 3 class State(Enum): @@ -147,8 +146,6 @@ def __str__(self) -> str: state_icon: str = self.state.value kind_icon: str match self.kind: - case Kind.UNKNOWN: - kind_icon = "\033[93m" + QUESTION_MARK case Kind.NEOVIM: kind_icon = "\033[94m" + " " case Kind.VIM: @@ -186,7 +183,7 @@ def parse_file(path: str) -> Optional[Plugin]: ) state: State = State.UNKNOWN - kind: Kind = Kind.UNKNOWN + kind: Kind if re.match( re.compile(r".*mkNeovimPlugin", re.DOTALL), file_content, @@ -254,7 +251,7 @@ def main(args): "-k", "--kind", choices=[k.name.lower() for k in Kind], - help="Filter plugins by kind (neovim, vim, misc, unknown)", + help="Filter plugins by kind (neovim, vim, misc)", ) parser.add_argument( "-s",