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

feat(deployments): add tier confirmation prompt for pricing #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steebchen
Copy link
Member

Introduce user confirmation for non-basic tiers with pricing details. Adds a force flag to skip confirmation and leverages dialoguer for interactive prompts. Also integrates strum_macros for enum display.

Introduce user confirmation for non-basic tiers with pricing details.
Adds a `force` flag to skip confirmation and leverages `dialoguer` for
interactive prompts. Also integrates `strum_macros` for enum display.
if !self.force {
let confirmation = Confirm::with_theme(&ColorfulTheme::default())
.with_prompt(format!(
"You are creating a `{}` instance, which will cost you around ${} per month (billed daily). Do you want to proceed?",
Copy link
Contributor

Choose a reason for hiding this comment

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

No unit for the price. Is it credit, or $USD?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is rendered as $ wich assumes USD I guess and credits are also USD

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.

2 participants