Skip to content

Commit 7ec94ba

Browse files
committed
feat(Server): Add HooksMixin
1 parent 4a2e8ad commit 7ec94ba

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

4849

49-
class Server(EnvironmentMixin, OptionsMixin):
50+
class Server(
51+
EnvironmentMixin,
52+
OptionsMixin,
53+
HooksMixin,
54+
):
5055
""":term:`tmux(1)` :term:`Server` [server_manual]_.
5156
5257
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -121,6 +126,8 @@ class Server(EnvironmentMixin, OptionsMixin):
121126

122127
default_option_scope: OptionScope | None = OptionScope.Server
123128
"""For option management."""
129+
default_hook_scope: OptionScope | None = OptionScope.Server
130+
"""For hook management."""
124131

125132
def __init__(
126133
self,

0 commit comments

Comments
 (0)