Skip to content

Commit

Permalink
Add MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Jun 28, 2024
1 parent 0717590 commit fa843c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
MSG_DOWNLOAD_SETUP_KEY_PROMPT, MSG_GETTING_PROOF_STORE_CONFIG,
MSG_GETTING_PUBLIC_STORE_CONFIG, MSG_PROOF_STORE_CONFIG_PROMPT, MSG_PROOF_STORE_DIR_PROMPT,
MSG_PROOF_STORE_GCS_BUCKET_BASE_URL_PROMPT, MSG_PROOF_STORE_GCS_CREDENTIALS_FILE_PROMPT,
MSG_SETUP_KEY_PATH_PROMPT,
MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT, MSG_SETUP_KEY_PATH_PROMPT,
},
};

Expand Down Expand Up @@ -210,7 +210,7 @@ impl ProverInitArgs {
logger::info(MSG_GETTING_PUBLIC_STORE_CONFIG);
let shall_save_to_public_bucket = self
.shall_save_to_public_bucket
.unwrap_or_else(|| PromptConfirm::new("Do you want to save to public bucket?").ask());
.unwrap_or_else(|| PromptConfirm::new(MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT).ask());

if !shall_save_to_public_bucket {
return Ok(None);
Expand Down
1 change: 1 addition & 0 deletions zk_toolbox/crates/zk_inception/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ pub(super) const MSG_GETTING_GCP_PROJECTS_SPINNER: &str = "Getting GCP projects.
pub(super) const MSG_GETTING_PROOF_STORE_CONFIG: &str = "Getting proof store configuration...";
pub(super) const MSG_GETTING_PUBLIC_STORE_CONFIG: &str = "Getting public store configuration...";
pub(super) const MSG_CREATING_GCS_BUCKET_SPINNER: &str = "Creating GCS bucket...";
pub(super) const MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT: &str = "Do you want to save to public bucket?";

pub(super) fn msg_bucket_created(bucket_name: &str) -> String {
format!("Bucket created successfully with url: gs://{bucket_name}")
Expand Down

0 comments on commit fa843c3

Please sign in to comment.