Skip to main content
Module

x/cliffy/command/types/action_list.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
import type { Command } from "../command.ts";import { StringType } from "./string.ts";
/** Completion list type. */export class ActionListType extends StringType { constructor(protected cmd: Command) { super(); }
/** Complete action names. */ public complete(): string[] { return this.cmd.getCompletions() .map((type) => type.name) // filter unique values .filter((value, index, self) => self.indexOf(value) === index); }}