Skip to content

Commit e3faea7

Browse files
committed
libtmux.constants: Add OptionType and OPTION_TYPE_FLAG_MAP
1 parent 129e832 commit e3faea7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/libtmux/constants.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""Constant variables for libtmux."""
2+
import enum
3+
import typing as t
4+
5+
6+
class OptionType(enum.Enum):
7+
"""Used for set-option and show-option(s) commands."""
8+
9+
Server = "SERVER"
10+
Session = "SESSION"
11+
Window = "WINDOW"
12+
Pane = "PANE"
13+
14+
15+
OPTION_TYPE_FLAG_MAP: t.Dict[OptionType, str] = {
16+
OptionType.Server: "-s",
17+
OptionType.Session: "",
18+
OptionType.Window: "-w",
19+
OptionType.Pane: "-p",
20+
}

0 commit comments

Comments
 (0)