docs
This commit is contained in:
parent
97bb6f788d
commit
969fbe982d
3 changed files with 61 additions and 1 deletions
|
|
@ -1507,7 +1507,7 @@ def tmux_cli_attach(
|
|||
),
|
||||
):
|
||||
"""
|
||||
Attach or create a session for a repo in a workspace.
|
||||
Attach or create a tmux session for a repo in a workspace.
|
||||
"""
|
||||
_settings, _repos_dir, workspaces_dir = get_ctx_paths(ctx)
|
||||
ws_dir = find_workspace_dir(workspaces_dir, workspace)
|
||||
|
|
@ -1536,6 +1536,9 @@ def tmux_cli_list_sessions(
|
|||
),
|
||||
),
|
||||
):
|
||||
"""
|
||||
List tmux workspace sessions.
|
||||
"""
|
||||
if not_in_tmux():
|
||||
console.print("[red]Not in tmux. Exiting.[/red]")
|
||||
raise typer.Exit(1)
|
||||
|
|
@ -1569,6 +1572,9 @@ def tmux_cli_remove(
|
|||
help="Don't actually remove the session.",
|
||||
),
|
||||
):
|
||||
"""
|
||||
Remove tmux workspace sessions.
|
||||
"""
|
||||
if not_in_tmux():
|
||||
console.print("[red]Not in tmux. Exiting.[/red]")
|
||||
raise typer.Exit(1)
|
||||
|
|
@ -1612,6 +1618,9 @@ def attach(
|
|||
),
|
||||
),
|
||||
):
|
||||
"""
|
||||
Attach to a workspace.
|
||||
"""
|
||||
_settings, _repos_dir, workspaces_dir = get_ctx_paths(ctx)
|
||||
if len(list_workspaces(workspaces_dir)) == 0:
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue