aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/@actions/exec/lib/exec.d.ts
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-16 16:49:47 +0100
committerEgor Tensin <egor@tensin.name>2025-12-16 16:49:47 +0100
commit1d134f39e7ded438b1de12160f6ec7f99eafb8f7 (patch)
treed277bd11747332b962c109b419f95ede150fb6a9 /node_modules/@actions/exec/lib/exec.d.ts
parentworkflows/test: upgrade actions (diff)
downloadcleanup-path-1d134f39e7ded438b1de12160f6ec7f99eafb8f7.tar.gz
cleanup-path-1d134f39e7ded438b1de12160f6ec7f99eafb8f7.zip
bump dependencies
Diffstat (limited to 'node_modules/@actions/exec/lib/exec.d.ts')
-rw-r--r--node_modules/@actions/exec/lib/exec.d.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/node_modules/@actions/exec/lib/exec.d.ts b/node_modules/@actions/exec/lib/exec.d.ts
new file mode 100644
index 0000000..baedcdb
--- /dev/null
+++ b/node_modules/@actions/exec/lib/exec.d.ts
@@ -0,0 +1,24 @@
+import { ExecOptions, ExecOutput, ExecListeners } from './interfaces';
+export { ExecOptions, ExecOutput, ExecListeners };
+/**
+ * Exec a command.
+ * Output will be streamed to the live console.
+ * Returns promise with return code
+ *
+ * @param commandLine command to execute (can include additional args). Must be correctly escaped.
+ * @param args optional arguments for tool. Escaping is handled by the lib.
+ * @param options optional exec options. See ExecOptions
+ * @returns Promise<number> exit code
+ */
+export declare function exec(commandLine: string, args?: string[], options?: ExecOptions): Promise<number>;
+/**
+ * Exec a command and get the output.
+ * Output will be streamed to the live console.
+ * Returns promise with the exit code and collected stdout and stderr
+ *
+ * @param commandLine command to execute (can include additional args). Must be correctly escaped.
+ * @param args optional arguments for tool. Escaping is handled by the lib.
+ * @param options optional exec options. See ExecOptions
+ * @returns Promise<ExecOutput> exit code, stdout, and stderr
+ */
+export declare function getExecOutput(commandLine: string, args?: string[], options?: ExecOptions): Promise<ExecOutput>;