Skip to content

Commit adf4523

Browse files
committed
feat(Server): Add HooksMixin
1 parent c4bab53 commit adf4523

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/libtmux/server.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from libtmux._internal.query_list import QueryList
2020
from libtmux.common import tmux_cmd
2121
from libtmux.constants import OptionScope
22+
from libtmux.hooks import HooksMixin
2223
from libtmux.neo import fetch_objs
2324
from libtmux.pane import Pane
2425
from libtmux.session import Session
@@ -50,7 +51,11 @@
5051
logger = logging.getLogger(__name__)
5152

5253

53-
class Server(EnvironmentMixin, OptionsMixin):
54+
class Server(
55+
EnvironmentMixin,
56+
OptionsMixin,
57+
HooksMixin,
58+
):
5459
""":term:`tmux(1)` :term:`Server` [server_manual]_.
5560
5661
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -125,6 +130,8 @@ class Server(EnvironmentMixin, OptionsMixin):
125130

126131
default_option_scope: OptionScope | None = OptionScope.Server
127132
"""For option management."""
133+
default_hook_scope: OptionScope | None = OptionScope.Server
134+
"""For hook management."""
128135

129136
def __init__(
130137
self,

0 commit comments

Comments
 (0)