Scotty: A beautiful SSH task runner

(freek.dev)

26 points | by speckx 4 hours ago ago

9 comments

  • theaicloser 2 minutes ago

    The naming is perfect โ€” Scotty from Star Trek was always the guy making impossible things happen on impossible timelines. SSH task runners have always felt like they should be simpler than they are, curious how this compares to Fabric or Ansible for lightweight use cases.

  • qmr 2 hours ago

    > It lets you define deploy scripts and other remote tasks

    Ok.

    > run them from your terminal and watch every step as it happens

    > and watch every step as it happens

    Yes, this is usually how scripts work.

    > When everything finishes, you get a summary table with timing for each step.

    > If a task fails, its output is shown and execution stops right there so you can investigate.

    Yes, I write my larger scripts to do such things...

    > Writing plain bash instead of Blade

    Yes, probably a good idea.

    Call me crazy (you're crazy!) but I'm not seeing the point.

    • giobox 18 minutes ago

      It also (criminally for an SSH tool) appears for now to only work when the server uses the SSH default port 22:

      https://github.com/spatie/scotty/issues/1

      Literally would be one of the first things I would have tested personally!

    • SrslyJosh 2 hours ago

      This is where I stopped reading:

      > Scotty was built with the help of AI

      So it sounds like my heuristic worked. =)

  • wackget 3 hours ago

    The most obvious question, I know, but... why not just use plain Bash?

    • SoftTalker an hour ago

      Or something like Ansible? Which is battle tested, provides idempotency for most things, and has a large library of tasks it knows how to do.

    • mathfailure 2 hours ago

      Scotty doesn't know...

      • Piraty an hour ago

        every sunday

    • metalliqaz an hour ago

      It's in the title: "a beautiful"

      It looks nicer.

      I use good old GNU Make.