From 4c0c55bb9f48b3af4016e916b41d76c1429801b0 Mon Sep 17 00:00:00 2001 From: Jadi Date: Fri, 11 Aug 2023 21:04:19 +0330 Subject: [PATCH] backend: sdk init: output file location. fixes #1854 * `start-sdk init` used to run completely silent. Now we are showing the current/generated developer.key.pem based on ticket https://github.com/Start9Labs/start-os/issues/1854 --- backend/src/developer/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/src/developer/mod.rs b/backend/src/developer/mod.rs index 70b40699e..23d714875 100644 --- a/backend/src/developer/mod.rs +++ b/backend/src/developer/mod.rs @@ -35,6 +35,15 @@ pub fn init(#[context] ctx: SdkContext) -> Result<(), Error> { .as_bytes(), )?; dev_key_file.sync_all()?; + println!( + "New developer key generated at {}", + ctx.developer_key_path.display() + ); + } else { + println!( + "Developer key already exists at {}", + ctx.developer_key_path.display() + ); } Ok(()) }