mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-07-07 01:24:38 +00:00
10 lines
498 B
TypeScript
10 lines
498 B
TypeScript
import { type SpawnSyncOptions } from "node:child_process";
|
|
export interface CommandResult {
|
|
readonly status: number;
|
|
readonly stdout: string;
|
|
readonly stderr: string;
|
|
}
|
|
export declare function runCommand(command: string, args?: string[], options?: SpawnSyncOptions): CommandResult;
|
|
export declare function runCommandOrThrow(command: string, args?: string[], options?: SpawnSyncOptions): CommandResult;
|
|
export declare function fileIsFresh(path: string, withinMinutes: number): boolean;
|