Skip to content

Commit 1b0130f

Browse files
committed
Add short command names
1 parent 0a69782 commit 1b0130f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/augtool.c

+26
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,32 @@ static void setup_lua(void) {
845845
// lua_register(LS, "aug_to_xml", lua_aug_to_xml);
846846
// lua_register(LS, "aug_srun", lua_aug_srun);
847847
// lua_register(LS, "aug_errors", lua_aug_errors);
848+
849+
// short names
850+
lua_register(LS, "get", lua_aug_get);
851+
lua_register(LS, "label", lua_aug_label);
852+
lua_register(LS, "set", lua_aug_set);
853+
lua_register(LS, "setm", lua_aug_setm);
854+
// lua_register(LS, "span", lua_aug_span);
855+
lua_register(LS, "insert", lua_aug_insert);
856+
lua_register(LS, "rm", lua_aug_rm);
857+
lua_register(LS, "mv", lua_aug_mv);
858+
lua_register(LS, "cp", lua_aug_cp);
859+
lua_register(LS, "rename", lua_aug_rename);
860+
lua_register(LS, "matches", lua_aug_matches);
861+
lua_register(LS, "match", lua_aug_match);
862+
lua_register(LS, "defvar", lua_aug_defvar);
863+
lua_register(LS, "defnode", lua_aug_defnode);
864+
lua_register(LS, "save", lua_aug_save);
865+
lua_register(LS, "load", lua_aug_load);
866+
lua_register(LS, "text_store", lua_aug_text_store);
867+
lua_register(LS, "text_retrieve", lua_aug_text_retrieve);
868+
// lua_register(LS, "escape_name", lua_aug_escape_name);
869+
lua_register(LS, "transform", lua_aug_transform);
870+
// lua_register(LS, "print", lua_aug_print);
871+
// lua_register(LS, "to_xml", lua_aug_to_xml);
872+
// lua_register(LS, "srun", lua_aug_srun);
873+
// lua_register(LS, "errors", lua_aug_errors);
848874
}
849875

850876
static int main_loop(void) {

0 commit comments

Comments
 (0)