use crate::ast::Instruction;
use crate::parser::utils::clean_exec_form;
use crate::parser::utils::clean_shell_form;
use crate::parser::utils::is_exec_form;
pub fn parse(arguments: &[String]) -> Instruction {
let entrypoint = if is_exec_form(arguments) {
clean_exec_form(arguments)
} else {
clean_shell_form(arguments)
};
Instruction::Entrypoint(entrypoint)
}