Skip to content

Commit

Permalink
feat(actions-exec-wrapper): add type support
Browse files Browse the repository at this point in the history
  • Loading branch information
ThulinaWickramasinghe committed Apr 14, 2024
1 parent 222c131 commit 9d6d920
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/actions-exec-wrapper/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @description Runs a given CLI command and return's it's standard output(stdout)
* @param command The command to be run
* @returns Command output wrapped around a promise
* @example
* exec("npm --version")
* .then((result) => {
* console.log(result);
* })
* .catch((error) => {
* console.log(error);
* });
*/
export default function execute(command: string): Promise<string>;

0 comments on commit 9d6d920

Please sign in to comment.