Skip to content

Commit

Permalink
Added hints to saeveral viur-cli commands (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grashalmbeisser authored May 6, 2024
1 parent 29f7f47 commit 1087b55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/viur_cli/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ def enable_gcp_backup():
@click.argument("service", type=click.Choice(["gcloud"]), default="gcloud")
@click.argument("profile", default="default")
def init(service, profile):
"""
Initializes the cloud service deployment.
Parameters:
- service (str): The cloud service to be initialized. Expected values are 'gcloud'.
- profile (str): The profile name to be used for initialization. Default value is 'default'.
"""
deployments = ["cron", "queue", "cron"]
if service == "gcloud":
for element in deployments:
Expand All @@ -97,6 +105,15 @@ def init(service, profile):
@click.argument("option", type=click.Choice(["datastore"]), default="datastore")
@click.argument("profile", default="default")
def cleanup(service, option, profile):
"""
Cleans up the indexes in the specified service and option.
Parameters:
- service (str): The service to clean up the indexes for.
- option (str): The option to clean up the indexes for.
- profile (str): The profile to use for configuration.
"""
conf = config.get_profile(profile)

if service == "gcloud" and option == "datastore":
Expand Down
2 changes: 1 addition & 1 deletion src/viur_cli/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def env(profile):
else:
click.echo(f"{failed_icon} gcloud")

click.echo(f"Your default gcloud user Info:")
click.echo(f"\nYour default gcloud user Info:\n--------------------------------")
for k, v in get_user_info().items():
click.echo(f"{k}: {v}")

Expand Down

0 comments on commit 1087b55

Please sign in to comment.