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

Support --force for overwriting existing secrets #1343

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

erikbern
Copy link
Contributor

This isn't implemented on the server yet, but will do that next

@erikbern
Copy link
Contributor Author

@prbot approve

Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 👍. @ekzhang will follow-up review this.

@erikbern erikbern merged commit b75a919 into main Feb 13, 2024
18 checks passed
@erikbern erikbern deleted the erikbern/force-secret-overwrite branch February 13, 2024 14:09
@@ -43,12 +43,13 @@ async def list(env: Optional[str] = ENV_OPTION, json: Optional[bool] = False):
display_table(column_names, rows, json, title=f"Secrets{env_part}")


@secret_cli.command("create", help="Create a new secret")
@secret_cli.command("create", help="Create a new secret. Use `--force` to overwrite any existing one.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add this to the option doc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think boolean options support documentation – I wasn't able to get it working and at least one Github Isssue suggests this is a missing feature in typer. Could be wrong though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated it! #1344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants