diff --git a/README.md b/README.md index ce93344b..5f5fd42d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ * [old main branch](https://github.com/shellgei/rusty_bash/tree/old_main) -[![Rust](https://github.com/shellgei/rusty_bash/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/shellgei/rusty_bash/actions/workflows/test.yml) +[![Rust](https://github.com/shellgei/rusty_bash/actions/workflows/test.yml/badge.svg?branch=dev-compounds)](https://github.com/shellgei/rusty_bash/actions/workflows/test.yml) ![](https://img.shields.io/github/license/shellgei/rusty_bash) ## What's this? diff --git a/src/elements/command.rs b/src/elements/command.rs index 99574472..81727919 100644 --- a/src/elements/command.rs +++ b/src/elements/command.rs @@ -5,12 +5,14 @@ pub mod simple; pub mod paren; pub mod brace; pub mod r#while; +pub mod r#if; use crate::{ShellCore, Feeder, Script}; use self::simple::SimpleCommand; use self::paren::ParenCommand; use self::brace::BraceCommand; use self::r#while::WhileCommand; +use self::r#if::IfCommand; use std::fmt; use std::fmt::Debug; use super::{io, Pipe}; @@ -99,5 +101,6 @@ pub fn parse(feeder: &mut Feeder, core: &mut ShellCore) -> Option, + pub do_script: Option