mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
This commit is contained in:
parent
ecfeee2e82
commit
a3129fd4e8
53 changed files with 353 additions and 328 deletions
|
|
@ -36,7 +36,9 @@ const struct cmd_entry cmd_set_hook_entry = {
|
|||
.args = { "gt:u", 1, 2 },
|
||||
.usage = "[-gu] " CMD_TARGET_SESSION_USAGE " hook-name [command]",
|
||||
|
||||
.flags = CMD_SESSION_T,
|
||||
.tflag = CMD_SESSION,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_set_hook_exec
|
||||
};
|
||||
|
||||
|
|
@ -47,7 +49,9 @@ const struct cmd_entry cmd_show_hooks_entry = {
|
|||
.args = { "gt:", 0, 1 },
|
||||
.usage = "[-g] " CMD_TARGET_SESSION_USAGE,
|
||||
|
||||
.flags = CMD_SESSION_T,
|
||||
.tflag = CMD_SESSION,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_set_hook_exec
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue