mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-04 22:39:47 +00:00
feat: Add in 033 new features
This commit is contained in:
23
types.ts
23
types.ts
@@ -58,6 +58,29 @@ export type Effects = {
|
|||||||
input: { volumeId: string; path: string },
|
input: { volumeId: string; path: string },
|
||||||
): Promise<Record<string, unknown>>;
|
): Promise<Record<string, unknown>>;
|
||||||
|
|
||||||
|
|
||||||
|
runCommand(
|
||||||
|
input: {
|
||||||
|
command: string,
|
||||||
|
args?: string[],
|
||||||
|
timeoutMillis?: number
|
||||||
|
},
|
||||||
|
): Promise<ResultType<string>>;
|
||||||
|
runDaemon(
|
||||||
|
input: {
|
||||||
|
command: string,
|
||||||
|
args?: string[],
|
||||||
|
},
|
||||||
|
): {
|
||||||
|
wait(): Promise<ResultType<string>>,
|
||||||
|
term(): Promise<void>
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
sleep(
|
||||||
|
timeMs: number,
|
||||||
|
): Promise<null>;
|
||||||
|
|
||||||
/** Log at the trace level */
|
/** Log at the trace level */
|
||||||
trace(whatToPrint: string): void;
|
trace(whatToPrint: string): void;
|
||||||
/** Log at the warn level */
|
/** Log at the warn level */
|
||||||
|
|||||||
Reference in New Issue
Block a user