Skip to main content
Module

x/cliffy/packages/command/commands/completions/zsh.ts>ZshCompletionsCommand

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class ZshCompletionsCommand
import { ZshCompletionsCommand } from "https://deno.land/x/cliffy@v0.5.1/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): string

Generates zsh completions method for given command and child commands.

protected
addAction(arg: IArgumentDetails, cmd: string): IAction
protected
generate(): string

Generates zsh completions code.

protected
generateActions(command: BaseCommand): string
protected
generateArgumentCompletions(command: BaseCommand): string
protected
generateCommandCompletions(command: BaseCommand): string
protected
generateOption(
option: IOption,
baseName: string,
completionsPath: string,
excludedFlags: string[],
): string
protected
generateOptions(command: BaseCommand)
protected
generateSubCommandCompletions(command: BaseCommand): string
command(
nameAndArguments: string,
cmd?: BaseCommand | string,
override?: boolean,
): this