in scripts/testing/cli.py [0:0]
def print_help(name, vm_zone):
"""
Prints a list of commands that can be used to interact with the setup
"""
logs_cmd = " ".join(
[
"gcloud",
"compute",
"ssh",
name,
"--zone",
vm_zone,
"--command",
'"tail -f ~/service.log"',
]
)
connectors_cmd = " ".join(
[
"gcloud",
"compute",
"ssh",
name,
"--zone",
vm_zone,
"--command",
f'"/var/app/bin/connectors -c ~/{CLI_CONFIG_FILE} connector list"',
]
)
sync_jobs_cmd = " ".join(
[
"gcloud",
"compute",
"ssh",
name,
"--zone",
vm_zone,
"--command",
f'"/var/app/bin/connectors -c ~/{CLI_CONFIG_FILE} job list CONNECTOR_ID"',
]
)
click.echo("You can use the following commands to interact with the setup:")
click.echo("Access logs: " + click.style(logs_cmd, fg="green"))
click.echo("List of connectors: " + click.style(connectors_cmd, fg="green"))
click.echo("List of sync jobs: " + click.style(sync_jobs_cmd, fg="green"))