Skip to content

Commit

Permalink
chore: filter out ignored commands from search
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Oct 10, 2023
1 parent 727200b commit 3bdb734
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/incomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ async function determineCommand(config: Interfaces.Config, matches: Command.Load
}

const hook: Hook.CommandIncomplete = async function ({ config, matches, argv }) {
const command = await determineCommand(config, matches);
const command = await determineCommand(
config,
matches.filter((m) => !m.hidden)
);

if (argv.includes('--help') || argv.includes('-h')) {
const Help = await loadHelpClass(config);
Expand Down

0 comments on commit 3bdb734

Please sign in to comment.