diff --git a/src/augtool.c b/src/augtool.c index 0636d62b2..07a94e06f 100644 --- a/src/augtool.c +++ b/src/augtool.c @@ -845,6 +845,32 @@ static void setup_lua(void) { // lua_register(LS, "aug_to_xml", lua_aug_to_xml); // lua_register(LS, "aug_srun", lua_aug_srun); // lua_register(LS, "aug_errors", lua_aug_errors); + + // short names + lua_register(LS, "get", lua_aug_get); + lua_register(LS, "label", lua_aug_label); + lua_register(LS, "set", lua_aug_set); + lua_register(LS, "setm", lua_aug_setm); + // lua_register(LS, "span", lua_aug_span); + lua_register(LS, "insert", lua_aug_insert); + lua_register(LS, "rm", lua_aug_rm); + lua_register(LS, "mv", lua_aug_mv); + lua_register(LS, "cp", lua_aug_cp); + lua_register(LS, "rename", lua_aug_rename); + lua_register(LS, "matches", lua_aug_matches); + lua_register(LS, "match", lua_aug_match); + lua_register(LS, "defvar", lua_aug_defvar); + lua_register(LS, "defnode", lua_aug_defnode); + lua_register(LS, "save", lua_aug_save); + lua_register(LS, "load", lua_aug_load); + lua_register(LS, "text_store", lua_aug_text_store); + lua_register(LS, "text_retrieve", lua_aug_text_retrieve); + // lua_register(LS, "escape_name", lua_aug_escape_name); + lua_register(LS, "transform", lua_aug_transform); + // lua_register(LS, "print", lua_aug_print); + // lua_register(LS, "to_xml", lua_aug_to_xml); + // lua_register(LS, "srun", lua_aug_srun); + // lua_register(LS, "errors", lua_aug_errors); } static int main_loop(void) {