Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hailctl] make the output of dry-run copy-pasteable #14127

Merged
merged 1 commit into from Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion hail/python/hailtop/hailctl/dataproc/start.py
Expand Up @@ -4,6 +4,7 @@
import yaml

from typing import Optional, List
from shlex import quote as shq

from . import gcloud
from .cluster_config import ClusterConfig
Expand Down Expand Up @@ -419,7 +420,15 @@ def jvm_heap_size_gib(machine_type: str, memory_fraction: float) -> int:
cmd.extend(pass_through_args)

# print underlying gcloud command
print(' '.join(cmd[:5]) + ' \\\n ' + ' \\\n '.join(cmd[5:]))
print(
''.join(
[
' '.join(shq(x) for x in cmd[:5]),
' \\\n ',
' \\\n '.join(shq(x) for x in cmd[5:]),
]
)
)

# spin up cluster
if not dry_run:
Expand Down