use shuck_ast::{Command, static_word_text};
pub fn is_simple_command_named(command: &Command, source: &str, name: &str) -> bool {
match command {
Command::Simple(command) => {
static_word_text(&command.name, source).as_deref() == Some(name)
}
Command::Builtin(_)
| Command::Decl(_)
| Command::Binary(_)
| Command::Compound(_)
| Command::Function(_)
| Command::AnonymousFunction(_) => false,
}
}