aboutsummaryrefslogtreecommitdiffstats
path: root/src/builtins.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-07-12 03:35:06 -0400
committerJesse Luehrs <doy@tozt.net>2019-07-12 03:48:31 -0400
commit65ec6eb0f5c587139f730afa2291493a8a828c1f (patch)
treeed001684324ef8d5b43d32a4c3ef380741b7bc61 /src/builtins.rs
parentff8d2f2d6f0efc363d3681c3908923ed8a1daf4b (diff)
downloadnbsh-old-65ec6eb0f5c587139f730afa2291493a8a828c1f.tar.gz
nbsh-old-65ec6eb0f5c587139f730afa2291493a8a828c1f.zip
allow the tui to manage the overall raw screen
Diffstat (limited to 'src/builtins.rs')
-rw-r--r--src/builtins.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/builtins.rs b/src/builtins.rs
index 83fa0d1..d1f5b61 100644
--- a/src/builtins.rs
+++ b/src/builtins.rs
@@ -35,10 +35,6 @@ pub enum Error {
pub type Result<T> = std::result::Result<T, Error>;
-pub fn exec(cmd: &str, args: &[String]) -> Result<Builtin> {
- Builtin::new(cmd, args)
-}
-
pub struct Builtin {
cmd: String,
args: Vec<String>,
@@ -47,7 +43,7 @@ pub struct Builtin {
}
impl Builtin {
- fn new(cmd: &str, args: &[String]) -> Result<Self> {
+ pub fn new(cmd: &str, args: &[String]) -> Result<Self> {
match cmd {
"cd" => Ok(Self {
cmd: cmd.to_string(),