Skip to content

Commit 8b17da9

Browse files
committed
feat(Server): Add HooksMixin
1 parent 7c299ff commit 8b17da9

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
@@ -47,7 +48,11 @@
4748
logger = logging.getLogger(__name__)
4849

4950

50-
class Server(EnvironmentMixin, OptionsMixin):
51+
class Server(
52+
EnvironmentMixin,
53+
OptionsMixin,
54+
HooksMixin,
55+
):
5156
""":term:`tmux(1)` :term:`Server` [server_manual]_.
5257
5358
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -122,6 +127,8 @@ class Server(EnvironmentMixin, OptionsMixin):
122127

123128
default_option_scope: OptionScope | None = OptionScope.Server
124129
"""For option management."""
130+
default_hook_scope: OptionScope | None = OptionScope.Server
131+
"""For hook management."""
125132

126133
def __init__(
127134
self,

0 commit comments

Comments
 (0)