Skip to content

Commit 2d793c8

Browse files
committed
feat(Server): Add HooksMixin
1 parent be95221 commit 2d793c8

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
@@ -42,7 +43,11 @@
4243
logger = logging.getLogger(__name__)
4344

4445

45-
class Server(EnvironmentMixin, OptionsMixin):
46+
class Server(
47+
EnvironmentMixin,
48+
OptionsMixin,
49+
HooksMixin,
50+
):
4651
""":term:`tmux(1)` :term:`Server` [server_manual]_.
4752
4853
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -108,6 +113,8 @@ class Server(EnvironmentMixin, OptionsMixin):
108113

109114
default_option_scope: OptionScope | None = OptionScope.Server
110115
"""For option management."""
116+
default_hook_scope: OptionScope | None = OptionScope.Server
117+
"""For hook management."""
111118

112119
def __init__(
113120
self,

0 commit comments

Comments
 (0)