mirror of
https://github.com/ivabus/smurf
synced 2024-11-22 00:15:10 +03:00
0.3.1
- export shell::run Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
8449b97658
commit
dcbb036760
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "smurf"
|
name = "smurf"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Ivan Bushchik <ivabus@ivabus.dev>"]
|
authors = ["Ivan Bushchik <ivabus@ivabus.dev>"]
|
||||||
description = "SMall Useful Rust Functions"
|
description = "SMall Useful Rust Functions"
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub struct ShellResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
fn run(command: String) -> ShellResult {
|
pub fn run(command: String) -> ShellResult {
|
||||||
let mut iter = command.split_whitespace();
|
let mut iter = command.split_whitespace();
|
||||||
let mut current = iter.next();
|
let mut current = iter.next();
|
||||||
let mut words: Vec<&str> = vec![];
|
let mut words: Vec<&str> = vec![];
|
||||||
|
|
Loading…
Reference in a new issue