mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Add screen argument (#5808)
This commit is contained in:
parent
963bbe8bbd
commit
dc80e6be3d
1 changed files with 4 additions and 1 deletions
|
@ -308,12 +308,15 @@ def get_session_runs(name, command, parsed_args):
|
|||
|
||||
|
||||
@session_cli.command(help="Attach to an existing cluster")
|
||||
@click.option(
|
||||
"--screen", is_flag=True, default=False, help="Run the command in screen.")
|
||||
@click.option("--tmux", help="Attach to tmux session", is_flag=True)
|
||||
def attach(tmux):
|
||||
def attach(screen, tmux):
|
||||
project_definition = load_project_or_throw()
|
||||
attach_cluster(
|
||||
project_definition.cluster_yaml(),
|
||||
start=False,
|
||||
use_screen=screen,
|
||||
use_tmux=tmux,
|
||||
override_cluster_name=None,
|
||||
new=False,
|
||||
|
|
Loading…
Add table
Reference in a new issue