From 6cfb4e18dc923824c80d91856749bc1fbf268b3d Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Thu, 4 Jun 2026 13:11:16 -0400 Subject: [PATCH] clean up help --- bin/lib/cmds.nu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/lib/cmds.nu b/bin/lib/cmds.nu index cafa5c8..4705e44 100644 --- a/bin/lib/cmds.nu +++ b/bin/lib/cmds.nu @@ -5,7 +5,11 @@ const REPO_ROOT = path self | path dirname | path dirname | path dirname export def skyg [] { print $REPO_ROOT - print "Subcommands: profiles, build, switch, test, rollback, update, remote, openwrt, build-iso, hm, decrypt, encrypt" + let subcmds = (help commands | + where name starts-with "skyg " | + each { |c| $c.name | split row " " | get 1 } | + uniq | str join ', ') + print $"Subcommands: ($subcmds)" print "Run: skyg --help" }