Skip to content

Commit

Permalink
Add short command names
Browse files Browse the repository at this point in the history
  • Loading branch information
raphink committed Sep 16, 2015
1 parent 0a69782 commit 1b0130f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/augtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b0130f

Please sign in to comment.