use crate::database::database_structs::{Database,DeletedCommands};
use crate::ops::alias_ops::{add_alias_to_file};
pub fn add_alias(db: &mut Database, deleted_commands: &mut DeletedCommands, file_path: &str, alias: &str, command: &str) {
db.remove_command(&command.to_string(), deleted_commands);
add_alias_to_file(file_path, alias, command);
}