Skip to content

Commit

Permalink
Add new function
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 8, 2024
1 parent ebe6d6c commit 64e8204
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/elements/command/if.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,16 @@ impl Command for IfCommand {
}

impl IfCommand {
fn new() -> IfCommand {
IfCommand {
text: String::new(),
if_elif_scripts: vec![],
then_scripts: vec![],
else_script: None,
redirects: vec![],
force_fork: false,
}
}

pub fn parse(_: &mut Feeder, _: &mut ShellCore) -> Option<IfCommand> {None}
}

0 comments on commit 64e8204

Please sign in to comment.