You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Features
Add sake tui, an interactive terminal UI for browsing servers and tasks, running tasks and executing ad-hoc commands, with live output. Use --reload to reload the config when it changes
Breaking
Replace work_dir with local_dir (alias ldir) and remote_dir (alias rdir), using work_dir now gives an error. Commands run on your machine use local_dir, commands run on servers use remote_dir, and the most specific value wins: a task's directory is no longer joined onto the server's. See Working Directory
tty: true tasks now run in their local_dir, which defaults to the folder of the config that defines the task, instead of the directory sake was started from
A relative local_dir set 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 $HOME are 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 with any_errors_fatal: false. A run that goes on past its failures still exits 0
A spec's confirm: true now asks before running the task, as --confirm does
A task's own theme is now used by sake run, unless --theme is given
In nested task references, a task's local_dir, remote_dir, shell and env now 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: true tasks fail on Windows, which doesn't support them, instead of doing nothing and reporting ok
sake ssh and attach: true fail on Windows, which doesn't support them, instead of doing nothing and reporting ok
default_timeout now also limits the SSH handshake, authentication included, so a server that never answers is unreachable instead of hanging sake 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 register values with strategy: free, which could crash sake with concurrent map writes
Fix garbled or lost output when a command writes to stdout and stderr at once
Fix text output hanging with print: stdout or print: stderr when the command writes a lot to the other stream
Fix register values being doubled with print: stdout or print: stderr
Fix the --tty flag having no effect
Fix environment variables in identity_file not being expanded
Fix a panic on ~ in identity_file or known_hosts_file when $HOME is unset
Fix inventory hosts all getting the last host's S_HOST, S_USER and S_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 shell with more than one flag, like bash -e -c. A local shell is 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: true task's env not overriding the user's environment
Fix sake run hanging when reading a host key answer fails
Fix sake run asking 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-man writing a stray docs/command-reference.md