class ZshCompletionsCommand
extends DefaultCommand
import { ZshCompletionsCommand } from "https://deno.land/x/cliffy@v0.5.0/packages/command/commands/completions/zsh.ts";
Generates zsh completion code.
Constructors
new
ZshCompletionsCommand(parent: BaseCommand)Properties
protected
actions: Map<string, IAction>Actions from the command which is currently parsing.
Methods
private
generateCompletions(command: BaseCommand, root?: boolean): stringGenerates zsh completions method for given command and child commands.
protected
addAction(arg: IArgumentDetails, cmd: string): IActionprotected
generate(): stringGenerates zsh completions code.
protected
generateActions(command: BaseCommand): stringprotected
generateArgumentCompletions(command: BaseCommand): stringprotected
generateCommandCompletions(command: BaseCommand): stringprotected
generateOption(): stringprotected
generateOptions(command: BaseCommand)protected
generateSubCommandCompletions(command: BaseCommand): stringcommand(): this