From e2de41cc583214b1da1c32345496509b0d490766 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Sat, 8 Feb 2025 13:06:42 +0100 Subject: [PATCH] Add subcommand list to `task` module --- modules/background_task/task.nu | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/background_task/task.nu b/modules/background_task/task.nu index d8aa1710..ba65d138 100644 --- a/modules/background_task/task.nu +++ b/modules/background_task/task.nu @@ -432,3 +432,11 @@ export def set-parallel-limit [ pueue parallel ...$args $max } + +const HERE = (path self) + +export def main [] { + let mod_name = $HERE | path basename | str replace -r '\.nu$' '' + scope commands | where name =~ $"^($mod_name) " | select name description | transpose -rd +} +