mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-14 07:49:01 +02:00
Use member names in cmd_entry definitions so I stop getting confused
about the order.
This commit is contained in:
@ -30,19 +30,25 @@
|
||||
enum cmd_retval cmd_set_hook_exec(struct cmd *, struct cmd_q *);
|
||||
|
||||
const struct cmd_entry cmd_set_hook_entry = {
|
||||
"set-hook", NULL,
|
||||
"gt:u", 1, 2,
|
||||
"[-gu] " CMD_TARGET_SESSION_USAGE " hook-name [command]",
|
||||
CMD_SESSION_T,
|
||||
cmd_set_hook_exec
|
||||
.name = "set-hook",
|
||||
.alias = NULL,
|
||||
|
||||
.args = { "gt:u", 1, 2 },
|
||||
.usage = "[-gu] " CMD_TARGET_SESSION_USAGE " hook-name [command]",
|
||||
|
||||
.flags = CMD_SESSION_T,
|
||||
.exec = cmd_set_hook_exec
|
||||
};
|
||||
|
||||
const struct cmd_entry cmd_show_hooks_entry = {
|
||||
"show-hooks", NULL,
|
||||
"gt:", 0, 1,
|
||||
"[-g] " CMD_TARGET_SESSION_USAGE,
|
||||
CMD_SESSION_T,
|
||||
cmd_set_hook_exec
|
||||
.name = "show-hooks",
|
||||
.alias = NULL,
|
||||
|
||||
.args = { "gt:", 0, 1 },
|
||||
.usage = "[-g] " CMD_TARGET_SESSION_USAGE,
|
||||
|
||||
.flags = CMD_SESSION_T,
|
||||
.exec = cmd_set_hook_exec
|
||||
};
|
||||
|
||||
enum cmd_retval
|
||||
|
Reference in New Issue
Block a user