pallet.execute documentation

Execute actions.

clean-logs

fn

[user]

Clean passwords from logs

clear-target-flag

fn

[session flag]

Clear flag for target.

log-script-output

fn

[server user]

Return a function to log (multi-line) script output, removing passwords.

normalise-eol

fn

[s]

Convert eol into platform specific value

parse-flag-values

fn

[output]

Parse flags with values from the output stream of an action.

parse-flags

fn

[output]

Parse flags from the output stream of an action.

parse-shell-result

fn

[session {:keys [out], :as result}]

Sets the :flags key in a shell result map for any flags set by an action.

result-with-error-map

fn

[server msg {:keys [exit], :as result}]

Verify the return code of a script execution, and add an error map if there is a non-zero result :exit

script-error-map

fn

[server msg result]

Create an error map for a script execution

set-target-flag-values

fn

[session flag-values]

Set flag values for target.

set-target-flags

fn

[session flags]

Set flags for target.

status-lines

fn

[lines]

Return script status lines from the given sequence of lines.

strip-sudo-password

fn

[s user]

Elides the user's password or sudo-password from the given script output.

target-flag-value

fn

[session flag]

Get flag value for target.

target-flag?

fn

[session flag]
[flag]

Predicate to test if the specified flag is set for target.