Skip to content

Instantly share code, notes, and snippets.

@piyushchauhan2011
Created July 26, 2020 12:47
Show Gist options
  • Save piyushchauhan2011/bc951f036ec8cfae4e29b8d402a145f5 to your computer and use it in GitHub Desktop.
Save piyushchauhan2011/bc951f036ec8cfae4e29b8d402a145f5 to your computer and use it in GitHub Desktop.

Revisions

  1. piyushchauhan2011 created this gist Jul 26, 2020.
    18 changes: 18 additions & 0 deletions mod.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    let p = Deno.run({
    cmd: [
    "sh",
    "-c",
    `
    echo hello
    echo hello2
    cat << EOF
    pwd: $PWD
    EOF
    `,
    ],
    });

    const { code } = await p.status();

    p.close();