mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
1178686a4c
swc_bundler: - Fix remapping of exports. (denoland/deno#9350)
14 lines
400 B
TypeScript
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() ) || [];
|
|
}
|
|
}
|