Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "cli-specs", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Specifications for CLIs.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
import type { ExecaChildProcess, ExecaReturnValue, Options as ExecaOptions } from 'execa'; | ||
import type { EmptyObject, Promisable } from 'type-fest'; | ||
export interface CliTool<ExtraOptions extends Record<string, unknown> = EmptyObject> { | ||
import type { Promisable } from 'type-fest'; | ||
export interface CliTool<ExtraOptions extends Record<string, unknown> = Record<string, unknown>> { | ||
(command: string | string[], options?: ExecaOptions & ExtraOptions): Promise<ExecaReturnValue>; | ||
@@ -5,0 +5,0 @@ commandName: string; |
import type { ExecaChildProcess, Options as ExecaOptions } from 'execa'; | ||
import type { EmptyObject, Promisable } from 'type-fest'; | ||
import type { Promisable } from 'type-fest'; | ||
import type { CliTool } from '~/types/cli.js'; | ||
export declare function defineCliTool<ExtraOptions extends Record<string, unknown> = EmptyObject>(args: { | ||
export declare function defineCliTool<ExtraOptions extends Record<string, unknown> = Record<string, unknown>>(args: { | ||
commandName: string; | ||
@@ -6,0 +6,0 @@ description: string; |
@@ -1,2 +0,2 @@ | ||
export declare const homebrew: import("..").CliTool<import("type-fest").EmptyObject>; | ||
export declare const homebrew: import("..").CliTool<Record<string, unknown>>; | ||
export declare function installHomebrewPackage(formulaName: string): Promise<void>; |
453369