Skip to content

Commit

Permalink
fix(command): default command 'help' not found error on completions c…
Browse files Browse the repository at this point in the history
…ommand
  • Loading branch information
c4spar committed Aug 29, 2020
1 parent 0e683c1 commit 580bacd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion command/completions/complete.ts
Expand Up @@ -34,7 +34,6 @@ export class CompleteCommand extends Command {
Deno.stdout.writeSync(new TextEncoder().encode(result.join(" ")));
}
})
.default("help")
.reset();
}
}
2 changes: 1 addition & 1 deletion command/completions/mod.ts
Expand Up @@ -27,7 +27,7 @@ To enable shell completions for this program add following line to your ${
}
`;
})
.default("help")
.action(() => this.help())
.command("zsh", new ZshCompletionsCommand(cmd))
// .command( 'bash', new BashCompletionsCommand( cmd ) )
.command("complete", new CompleteCommand(cmd).hidden())
Expand Down

0 comments on commit 580bacd

Please sign in to comment.