Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/packages/command/lib/zsh-completions-generator.ts>ZshCompletionsGenerator

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class ZshCompletionsGenerator
import { ZshCompletionsGenerator } from "https://deno.land/x/cliffy@v0.12.1/packages/command/lib/zsh-completions-generator.ts";

Constructors

new
private
ZshCompletionsGenerator(cmd: Command)

Properties

private
actions: Map<string, ICompletionAction>

Methods

private
addAction(arg: IArgumentDetails, cmd: string): ICompletionAction
private
generate(): string

Generates zsh completions code.

private
generateActions(command: Command): string
private
generateArgumentCompletions(command: Command, path: string): string
private
generateCommandCompletions(command: Command, path: string): string
private
generateCompletions(command: Command, path?: string): string

Generates zsh completions method for given command and child commands.

private
generateOption(
option: IOption,
completionsPath: string,
excludedOptions: string[],
): string
private
generateOptions(command: Command, path: string)
private
generateSubCommandCompletions(command: Command, path: string): string