Skip to content

Commit 0725d77

Browse files
committed
feat(Server): Add HooksMixin
1 parent efe537f commit 0725d77

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
@@ -16,6 +16,7 @@
1616
from libtmux._internal.query_list import QueryList
1717
from libtmux.common import tmux_cmd
1818
from libtmux.constants import OptionScope
19+
from libtmux.hooks import HooksMixin
1920
from libtmux.neo import fetch_objs
2021
from libtmux.pane import Pane
2122
from libtmux.session import Session
@@ -40,7 +41,11 @@
4041
logger = logging.getLogger(__name__)
4142

4243

43-
class Server(EnvironmentMixin, OptionsMixin):
44+
class Server(
45+
EnvironmentMixin,
46+
OptionsMixin,
47+
HooksMixin,
48+
):
4449
""":term:`tmux(1)` :term:`Server` [server_manual]_.
4550
4651
- :attr:`Server.sessions` [:class:`Session`, ...]
@@ -106,6 +111,8 @@ class Server(EnvironmentMixin, OptionsMixin):
106111

107112
default_option_scope: t.Optional[OptionScope] = OptionScope.Server
108113
"""For option management."""
114+
default_hook_scope: t.Optional[OptionScope] = OptionScope.Server
115+
"""For hook management."""
109116

110117
def __init__(
111118
self,

0 commit comments

Comments
 (0)