diff --git a/pwncat/commands/search.py b/pwncat/commands/search.py index 77fca6b..ae873d6 100644 --- a/pwncat/commands/search.py +++ b/pwncat/commands/search.py @@ -21,14 +21,14 @@ class Command(CommandDefinition): def run(self, args): table = Table( - Column(0, header="Name", ratio=0.2), - Column(1, header="Description", no_wrap=True, ratio=0.8), + Column(header="Name", ratio=0.2), + Column(header="Description", no_wrap=True, ratio=0.8), title="Results", box=box.MINIMAL_DOUBLE_HEAD, expand=True, ) - for module in pwncat.modules.match(args.module): + for module in pwncat.modules.match(f"*{args.module}*"): # Rich will ellipsize the column, but we need to squeze # white space and remove newlines. `textwrap.shorten` is # the easiest way to do that, so we use a large size for