About
The sprint crate provides the Shell struct which represents a shell
session in your library or CLI code and can be used for running commands:
Shell exposes its properties so you can easily
create a custom shell or modify an existing shell with
the settings you want.
Examples
Run command(s) and show the output
use *;
let shell = default;
shell.run;
Run command(s) and return the output
use *;
let shell = default;
let results = shell.run;
assert_eq!;
Customize
use *;
let shell = Shell ;
shell.run;
Modify
use *;
let mut shell = default;
shell.shell = None;
shell.run;
shell.sync = false;
shell.run;
Changelog
- 0.1.0 (2023-12-22): Initial release
- 0.1.1 (2023-12-24): Fix readme
- 0.1.2 (2023-12-24): Fix readme
- 0.2.0 (2023-12-26): Redesign; update dependencies
- 0.3.0 (2023-12-27): Add error handling
- 0.4.0 (2023-12-29): Fix error handling