swc/crates/swc_bundler/tests/.cache/deno/11cb63f852dc07cf7b8b40eb21f9001224b3292d.ts
2021-11-09 20:42:49 +09:00

14 lines
400 B
TypeScript

// Loaded from https://deno.land/x/cliffy@v0.12.1/packages/command/types/command.ts
import { Command } from '../lib/command.ts';
import { StringType } from './string.ts';
export class CommandType extends StringType {
public complete( cmd: Command, parent?: Command ): string[] {
return parent?.getCommands( false )
.map( ( cmd: Command ) => cmd.getName() ) || [];
}
}