• Hacker News
  • new|
  • comments|
  • show|
  • ask|
  • jobs|
  • oezi 9 minutes

    They don't mention a twinkle that many task runners seem keen to omit: how do you handle things where there are human steps involved and not everything is automated? How do you track what has worked and what is still left to do if things go sidesways?

    I built baker (https://github.com/coezbek/baker) for this some time ago (pre-LLM mostly). It uses markdown with embedded bash and ruby commands to give you a checklist which is run both automated for commands or with human in the loop for things which aren't automated (like login to some admin panel and generate that key, copy it here).

    The checklist gets checked off both by human actions (you confirm that you did it) and automated e.g. success bash command runs. So you keep a markdown artifact on where you are in your project and can continue later.

    You can wrap commands to run via SSH (of course clunkier than what scotty here does, but you can select a port for SSH).

  • theaicloser 12 minutes

    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.

  • mariocesar 10 minutes

    Feels like Ansible does the same thing, just with nicer output

  • graybeardhacker 2 minutes

    alias bones='scotty doctor'

  • qmr 1 hours

    > 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 28 minutes

    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 1 hours

    This is where I stopped reading:

    > Scotty was built with the help of AI

    So it sounds like my heuristic worked. =)

  • wackget 2 hours

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

    SoftTalker 1 hours

    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.

    metalliqaz 1 hours

    It's in the title: "a beautiful"

    It looks nicer.

    I use good old GNU Make.

    mathfailure 2 hours

    Scotty doesn't know...

    Piraty 1 hours

    every sunday