Skip to content

Commit

Permalink
Feature/indexfix (#111)
Browse files Browse the repository at this point in the history
* clean indices

* clean indices and smaller bugfixes

* Update src/viur_cli/update.py

Co-authored-by: Jan Max Meyer <[email protected]>

---------

Co-authored-by: Jan Max Meyer <[email protected]>
  • Loading branch information
Grashalmbeisser and phorward authored Feb 23, 2024
1 parent adb5f3f commit 963d10c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/viur_cli/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ def enable_gcp_backup():
print('Success! It may take a while until you can use Gcloud Backups')


@cloud.command(context_settings={"ignore_unknown_options": True})
@click.argument("service", type=click.Choice(["gcloud"]), default="gcloud")
@click.argument("option", type=click.Choice(["datastore"]), default="datastore")
@click.argument("profile", default="default")
def cleanup(service, option, profile):
conf = config.get_profile(profile)

if service == "gcloud" and option == "datastore":
run_command(f"gcloud datastore indexes cleanup deploy/index.yaml --project={conf['application_name']}")


@cloud.command(context_settings={"ignore_unknown_options": True})
@click.argument("action", type=click.Choice(["backup"]))
def disable(action):
Expand Down
2 changes: 1 addition & 1 deletion src/viur_cli/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def update(action, profile, additional_args):
conf = config.get_profile(profile)

if action == "requirements":
create_req(profile)
create_req(True, profile)



Expand Down

0 comments on commit 963d10c

Please sign in to comment.