From ca048d94cf856697f3e81b64041ea87f8f9ab63e Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Wed, 21 Aug 2019 01:18:00 -0400 Subject: [PATCH] exec/README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e76ce0b..84f8c8c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ You can use this package to execute your tools on the command line in a cross platform way: -``` +```js const exec = require('@actions/exec'); await exec.exec('node index.js'); @@ -16,7 +16,7 @@ await exec.exec('node index.js'); You can also pass in arg arrays: -``` +```js const exec = require('@actions/exec'); await exec.exec('node', ['index.js', 'foo=bar']); @@ -26,7 +26,7 @@ await exec.exec('node', ['index.js', 'foo=bar']); Capture output or specify [other options](https://github.com/actions/toolkit/blob/d9347d4ab99fd507c0b9104b2cf79fb44fcc827d/packages/exec/src/interfaces.ts#L5): -``` +```js const exec = require('@actions/exec'); const myOutput = ''; @@ -50,7 +50,7 @@ await exec.exec('node', ['index.js', 'foo=bar'], options); You can use it in conjunction with the `which` function from `@actions/io` to execute tools that are not in the PATH: -``` +```js const exec = require('@actions/exec'); const io = require('@actions/io');