Snippets
What a snippet is
A snippet is a command or script you save so you do not have to type it again on a phone keyboard. Give it a name, paste the command, and run it any time.
Create and edit
Tap the Snippets tab. If you have none, the screen says "No snippets yet" and "Tap + to save a command or script." Tap + to start a new snippet.
Fill in the name and command. To ask for a value each time the snippet runs, wrap a word in double curly braces: . The app calls these "Arguments" and lists them below the command. Each argument can have a default; leave it blank to be asked every time.
Tap Save to keep the snippet.
Run on one or more machines
A snippet is not tied to a single machine. Tap Run, then "Choose machines" to pick one or several. If you have no machines saved, the app tells you to add one first.
The run button counts what you picked - "Run on 3 machine(s)". The Runs screen then shows one row per machine, moving through:
- Waiting
- Connecting
- Running
- Done - the command finished with exit code 0.
- Exit 1, or whatever it returned - it finished, but reported a failure.
- Failed to start - the app could not begin at all, so the command never ran.
A summary at the top counts how many of the total have finished. You can see at a glance that the same command worked on four machines and failed on the fifth.
After a run
Tap a row to see what the machine printed. If nothing has printed yet, the screen says "Nothing printed yet." Tap "Copy output" to copy it to the clipboard.
Tap "Clear" to remove a finished run from the list. Tap "Clear all" to remove every run; nothing running is stopped.
Tap "Run again" to run the same snippet on the same machines without picking them again.