Skip to content

Commit 8ee22cc

Browse files
committed
libtmux.constants: Add OptionScope and OPTION_SCOPE_FLAG_MAP
1 parent 7bed10f commit 8ee22cc

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 OptionScope(enum.Enum):
7+
"""Scope used with ``set-option`` and ``show-option(s)`` commands."""
8+
9+
Server = "SERVER"
10+
Session = "SESSION"
11+
Window = "WINDOW"
12+
Pane = "PANE"
13+
14+
15+
OPTION_SCOPE_FLAG_MAP: t.Dict[OptionScope, str] = {
16+
OptionScope.Server: "-s",
17+
OptionScope.Session: "",
18+
OptionScope.Window: "-w",
19+
OptionScope.Pane: "-p",
20+
}

0 commit comments

Comments
 (0)