From dcbb036760b4560af03c341af3462fb88b3e416d Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Wed, 3 Jan 2024 16:33:21 +0300 Subject: [PATCH] 0.3.1 - export shell::run Signed-off-by: Ivan Bushchik --- Cargo.toml | 2 +- src/shell.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a71f50a..c7f2ee8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smurf" -version = "0.3.0" +version = "0.3.1" edition = "2021" authors = ["Ivan Bushchik "] description = "SMall Useful Rust Functions" diff --git a/src/shell.rs b/src/shell.rs index 3a40a47..1a03660 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -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![];