File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ """CLI for ``tmuxp shell`` subcommand."""
1
2
import argparse
2
3
import os
3
4
import pathlib
18
19
19
20
20
21
class CLIShellNamespace (argparse .Namespace ):
22
+ """Typed :class:`argparse.Namespace` for tmuxp shell command."""
23
+
21
24
session_name : str
22
25
socket_name : t .Optional [str ]
23
26
socket_path : t .Optional [str ]
@@ -31,6 +34,7 @@ class CLIShellNamespace(argparse.Namespace):
31
34
32
35
33
36
def create_shell_subparser (parser : argparse .ArgumentParser ) -> argparse .ArgumentParser :
37
+ """Augment :class:`argparse.ArgumentParser` with ``shell`` subcommand."""
34
38
parser .add_argument ("session_name" , metavar = "session-name" , nargs = "?" )
35
39
parser .add_argument ("window_name" , metavar = "window-name" , nargs = "?" )
36
40
parser .add_argument (
@@ -132,7 +136,7 @@ def command_shell(
132
136
args : CLIShellNamespace ,
133
137
parser : t .Optional [argparse .ArgumentParser ] = None ,
134
138
) -> None :
135
- """Launch python shell for tmux server, session, window and pane.
139
+ """Entrypoint for ``tmuxp shell`` for tmux server, session, window and pane.
136
140
137
141
Priority given to loaded session/window/pane objects:
138
142
You can’t perform that action at this time.
0 commit comments