Skip to content

Morantron/deno_sshkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

deno-sshkit

A copycat of ruby's sshkit DSL for deno. Allows to run commands on remote servers with typescript.

Requirements

This module uses unstable API spawnSync so it requires --unstable flag.

Example

import { on } from "https://deno.land/x/deno_sshkit/mod.ts";

on("example.com", ({ execute, test }) => {
  if (test("[ -f somefile.txt ]") {
    execute("rm -rf somefile.txt");
  }

  const files = execute("ls -l");

  console.log(files);
});

About

Copycat of ruby's sshkit gem for deno

Resources

License

Stars

Watchers

Forks

Packages

No packages published