We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0acb58d commit a0bfb14Copy full SHA for a0bfb14
1 file changed
src/libtmux/constants.py
@@ -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