Crate peace_item_sh_cmd
source ·Expand description
Manages running a shell command for the peace framework.
This item is designed to take in separate shell commands for each of the following:
- Current state logic, whose stdout defines the current state (
String
). - Goal state logic, whose stdout defines the goal state (
String
). - State diff logic, whose stdout defines the state difference.
- Ensure check, whose stdout defines if ensure execution needs to run –
true
means execution is required,false
means execution is required. - Ensure execution, whose stdout defines state physical.
- Clean check, whose exit status defines if clean execution needs to run –
true
means execution is required,false
means execution is required. - Clean execution.
Structs§
- Shell command to execute.
- ApplyFns for the command to execute.
- Data used to run a shell command.
- Item for executing a shell command.
- Grouping of commands to run a shell command idempotently.
- Specification of how to look up values for an item’s parameters.
- Item parameters that may not necessarily have values.
- Diff between the current and goal file extraction.
- Runs a shell command to obtain the
ShCmd
diff.
Enums§
- Command variants which take in scripts in
ShCmdParams
. - Error while managing command execution.
- Record of a shell command execution.
- State of the shell command execution.