Skip to content

Commit 9773e84

Browse files
committed
feat(Server): Add HooksMixin
1 parent 873f29d commit 9773e84

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
@@ -18,6 +18,7 @@
1818
from libtmux._internal.query_list import QueryList
1919
from libtmux.common import tmux_cmd
2020
from libtmux.constants import OptionScope
21+
from libtmux.hooks import HooksMixin
2122
from libtmux.neo import fetch_objs
2223
from libtmux.pane import Pane
2324
from libtmux.session import Session
@@ -48,7 +49,11 @@
4849
logger = logging.getLogger(__name__)
4950

5051

51-
class Server(EnvironmentMixin, OptionsMixin):
52+
class Server(
53+
EnvironmentMixin,
54+
OptionsMixin,
55+
HooksMixin,
56+
):
5257
""":term:`tmux(1)` :term:`Server` [server_manual]_.
5358
5459
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -123,6 +128,8 @@ class Server(EnvironmentMixin, OptionsMixin):
123128

124129
default_option_scope: OptionScope | None = OptionScope.Server
125130
"""For option management."""
131+
default_hook_scope: OptionScope | None = OptionScope.Server
132+
"""For hook management."""
126133

127134
def __init__(
128135
self,

0 commit comments

Comments
 (0)