diff options
| author | DeWitt Clinton <[email protected]> | 2025-05-17 21:57:27 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-17 21:57:27 -0700 |
| commit | 13a6a9a690900a50287d344592bf02bdfb2586f1 (patch) | |
| tree | 9c1426336a26e83973e554cfc3e77fba8c629b77 /packages/cli/src/ui/hooks/useCompletion.ts | |
| parent | 9749fcb4256b87a47480ea77ff25f07aa0c4ce45 (diff) | |
Introduce a small easter egg. Woof. (#412)
Also changes auto-completion and /help to skip over slash commands that don't contain a description to avoid spoiling the surprise.
Diffstat (limited to 'packages/cli/src/ui/hooks/useCompletion.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useCompletion.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/useCompletion.ts b/packages/cli/src/ui/hooks/useCompletion.ts index 9c0c2db1..c707adef 100644 --- a/packages/cli/src/ui/hooks/useCompletion.ts +++ b/packages/cli/src/ui/hooks/useCompletion.ts @@ -142,6 +142,7 @@ export function useCompletion( (altNameMatch && cmd.altName && cmd.altName.length > 1) ); }) + .filter((cmd) => cmd.description) .map((cmd) => ({ label: cmd.name, // Always show the main name as label value: cmd.name, // Value should be the main command name for execution |
