Lines Matching refs:main_cmds
195 struct cmdnames *main_cmds, in load_command_list() argument
202 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list()
203 qsort(main_cmds->names, main_cmds->cnt, in load_command_list()
204 sizeof(*main_cmds->names), cmdname_compare); in load_command_list()
205 uniq(main_cmds); in load_command_list()
228 exclude_cmds(other_cmds, main_cmds); in load_command_list()
231 void list_commands(const char *title, struct cmdnames *main_cmds, in list_commands() argument
236 for (i = 0; i < main_cmds->cnt; i++) in list_commands()
237 if (longest < main_cmds->names[i]->len) in list_commands()
238 longest = main_cmds->names[i]->len; in list_commands()
243 if (main_cmds->cnt) { in list_commands()
249 pretty_print_string_list(main_cmds, longest); in list_commands()