Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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
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); }}