File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
from libtmux ._internal .query_list import QueryList
16
16
from libtmux .common import tmux_cmd
17
+ from libtmux .constants import OptionScope
17
18
from libtmux .neo import fetch_objs
18
19
from libtmux .pane import Pane
19
20
from libtmux .session import Session
22
23
from . import exc , formats
23
24
from .common import (
24
25
EnvironmentMixin ,
26
+ OptionMixin ,
25
27
PaneDict ,
26
28
SessionDict ,
27
29
WindowDict ,
37
39
logger = logging .getLogger (__name__ )
38
40
39
41
40
- class Server (EnvironmentMixin ):
42
+ class Server (EnvironmentMixin , OptionMixin ):
41
43
""":term:`tmux(1)` :term:`Server` [server_manual]_.
42
44
43
45
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -101,6 +103,9 @@ class Server(EnvironmentMixin):
101
103
formatter_prefix = "server_"
102
104
"""Namespace used for :class:`~libtmux.common.TmuxMappingObject`"""
103
105
106
+ default_scope : t .Optional [OptionScope ] = OptionScope .Server
107
+ """For option setting."""
108
+
104
109
def __init__ (
105
110
self ,
106
111
socket_name : t .Optional [str ] = None ,
You can’t perform that action at this time.
0 commit comments