swc/bundler/tests/.cache/deno/11cb63f852dc07cf7b8b40eb21f9001224b3292d.ts
강동윤 1178686a4c
fix(bundler): Fix bundler (#1576)
swc_bundler:
 - Fix remapping of exports. (denoland/deno#9350)
2021-04-16 18:09:38 +00: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() ) || [];
}
}