- export shell::run

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2024-01-03 16:33:21 +03:00
parent 8449b97658
commit dcbb036760
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "smurf"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
authors = ["Ivan Bushchik <ivabus@ivabus.dev>"]
description = "SMall Useful Rust Functions"

View file

@ -14,7 +14,7 @@ pub struct ShellResult {
}
#[allow(dead_code)]
fn run(command: String) -> ShellResult {
pub fn run(command: String) -> ShellResult {
let mut iter = command.split_whitespace();
let mut current = iter.next();
let mut words: Vec<&str> = vec![];