Features
- Add
sake tui, an interactive terminal UI for browsing servers and tasks, running tasks and executing ad-hoc commands, with live output. Use--reloadto reload the config when it changes
Breaking
- Replace
work_dirwithlocal_dir(aliasldir) andremote_dir(aliasrdir), usingwork_dirnow gives an error. Commands run on your machine uselocal_dir, commands run on servers useremote_dir, and the most specific value wins: a task's directory is no longer joined onto the server's. See Working Directory tty: truetasks now run in theirlocal_dir, which defaults to the folder of the config that defines the task, instead of the directorysakewas started from- A relative
local_dirset in an imported config is resolved from that config's folder, instead of the folder of the config whose task references it - Directories are used as written, environment variables like
$HOMEare no longer expanded (use~) - Text output now exits non-zero when failures stop the run (
max_fail_percentage, which is 0 by default), as table output does, also withany_errors_fatal: false. A run that goes on past its failures still exits 0 - A spec's
confirm: truenow asks before running the task, as--confirmdoes - A task's own
themeis now used bysake run, unless--themeis given - In nested task references, a task's
local_dir,remote_dir,shellandenvnow win over those of the tasks it references, at any depth, as they already did for a direct reference. See Working Directory - The commands of a task referenced from an imported config now default to that config's folder, instead of the folder of the config whose task references it
- Commands get an empty stdin, so a command that reads it (
read,cat, a[Y/n]prompt) gets end-of-file instead of waiting forever tty: truetasks fail on Windows, which doesn't support them, instead of doing nothing and reporting oksake sshandattach: truefail on Windows, which doesn't support them, instead of doing nothing and reporting okdefault_timeoutnow also limits the SSH handshake, authentication included, so a server that never answers is unreachable instead of hangingsake run. Authentication that waits for you, like an ssh-agent confirmation or a hardware key touch, has to finish within it too, or the connection fails once it's done; checking an unknown host key doesn't count
Fixes
- Fail the command when its directory doesn't exist, instead of running it in another directory
- Fix directories with spaces
- Fix remote commands containing single quotes
- Show the error in text output when a local command fails to start, also with
print: stdout - Remove the blank line before the error in table output when a failed command printed nothing
- Fix a data race on
registervalues withstrategy: free, which could crash sake withconcurrent map writes - Fix garbled or lost output when a command writes to stdout and stderr at once
- Fix text output hanging with
print: stdoutorprint: stderrwhen the command writes a lot to the other stream - Fix
registervalues being doubled withprint: stdoutorprint: stderr - Fix the
--ttyflag having no effect - Fix environment variables in
identity_filenot being expanded - Fix a panic on
~inidentity_fileorknown_hosts_filewhen$HOMEis unset - Fix inventory hosts all getting the last host's
S_HOST,S_USERandS_PORT - Fix inventory hosts not connecting through their server's
bastion - Fix hosts of a
hosts:list or range connecting through the first host's bastion user and port, when the bastion is an SSH config alias - Fix a local
shellwith more than one flag, likebash -e -c. A localshellis now split into words as a shell would, as a remote one already was, so quote a path with spaces:shell: sh '/opt/my tools/wrap.sh' - Fix a
tty: truetask'senvnot overriding the user's environment - Fix
sake runhanging when reading a host key answer fails - Fix
sake runasking for the passphrase of a key that a local server doesn't use - Fix a server whose bastion fails being listed as "Bastion" with the bastion's address
- Fix SSH sessions, bastion connections and the ssh-agent connection being left open
- Fix the README links to the config and command references, and
make gen-manwriting a straydocs/command-reference.md