Create a simple text output.
(msg: impl Into<String>)
| 82 | impl CommandOutput { |
| 83 | /// Create a simple text output. |
| 84 | pub fn text(msg: impl Into<String>) -> Self { |
| 85 | Self { |
| 86 | text: msg.into(), |
| 87 | state_changed: false, |
| 88 | action: None, |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /// Create an output with a post-command action. |
| 93 | pub fn with_action(msg: impl Into<String>, action: CommandAction) -> Self { |
no outgoing calls