Skip to content

Commit

Permalink
fix: supply context correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
hugojosefson committed Nov 15, 2024
1 parent aa7fdf9 commit 962229e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ async function main() {

const actor = createActor(machine, {
input: {
passphrase,
sshCommand: new Deno.Command("ssh", {
args: ["-tt", destination.user + "@" + destination.host],
stdin: "piped",
stdout: "piped",
stderr: "piped",
}),
context: {
passphrase,
sshCommand: new Deno.Command("ssh", {
args: ["-tt", destination.user + "@" + destination.host],
stdin: "piped",
stdout: "piped",
stderr: "piped",
}),
},
},
});
Deno.addSignalListener("SIGINT", () => {
Expand Down

0 comments on commit 962229e

Please sign in to comment.