UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

22 lines (21 loc) 776 B
import { PkgService as BasePkgService } from '@sprucelabs/spruce-skill-utils'; import CommandServiceImpl from './CommandService'; export default class PkgService extends BasePkgService { private commandService; constructor(cwd: string, commandService: CommandServiceImpl); install(pkg?: string[] | string, options?: AddOptions): Promise<{ totalInstalled: number; totalSkipped: number; }>; static buildCommandAndArgs(toInstall: string[], options: AddOptions | undefined): { executable: string; args: any[]; }; getSkillNamespace(): any; uninstall(pkg: string[] | string): Promise<void>; } export interface AddOptions { isDev?: boolean; shouldForceInstall?: boolean; shouldCleanupLockFiles?: boolean; }