Crate peace_item_spec_sh_cmd
source ·Expand description
Manages running a shell command for the peace framework.
This item spec is designed to take in separate shell commands for each of the following:
- Current state logic, whose stdout defines the current state (
String). - Desired state logic, whose stdout defines the desired state (
String). - State diff logic, whose stdout defines the state difference.
- Ensure check, whose stdout defines if ensure execution needs to run –
truemeans execution is required,falsemeans execution is required. - Ensure execution, whose stdout defines state physical.
- Clean check, whose exit status defines if clean execution needs to run –
truemeans execution is required,falsemeans execution is required. - Clean execution.
Structs
- Shell command to execute.
- ApplyFns for the command to execute.
- Data used to run a shell command.
- Item spec for executing a shell command.
- Grouping of commands to run a shell command idempotently.
- Diff between the current and desired file extraction.
- Runs a shell command to obtain the
ShCmddiff.
Enums
- Error while managing command execution.
- Record of a shell command execution.
- State of the shell command execution.