import { collection } from '#/_base/di/collection'; import type { ServiceIdentifier } from '#/_base/di/instantiation'; export interface CommandRunContext { readonly args: string; get(id: ServiceIdentifier): T; } export interface CommandContribution { readonly name: string; readonly description?: string; readonly run: (ctx: CommandRunContext) => void | Promise; } export const CommandContribution = collection('command');