pub struct CommandGroup {
pub prompt: String,
pub command: String,
pub output: Vec<String>,
}Expand description
Grouped command entry with associated I/O segments.
This struct bundles together the prompt, command, and its corresponding output lines as a single renderable block.
It is the core abstraction unit used in script mode playback.
Fieldsยง
ยงprompt: StringShell-like prompt string (e.g. "user@host:~$").
command: StringCommand string typed by user (e.g. "echo hello").
output: Vec<String>Output lines returned by the command.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for CommandGroup
impl RefUnwindSafe for CommandGroup
impl Send for CommandGroup
impl Sync for CommandGroup
impl Unpin for CommandGroup
impl UnwindSafe for CommandGroup
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more