Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cliffy/command/completions/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.14.0/command/completions/zsh-completions-generator.ts";

Constructors

new
private
ZshCompletionsGenerator(cmd: Command)

Properties

private
actions: Map<string, ICompletionAction>

Methods

private
addAction(arg: IArgument, 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

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