Skip to content

Commit

Permalink
backend: sdk init: output file location. fixes Start9Labs#1854
Browse files Browse the repository at this point in the history
* `start-sdk init` used to run completely silent. Now we are
  showing the current/generated developer.key.pem based on
  ticket Start9Labs#1854
  • Loading branch information
jadijadi committed Aug 17, 2023
1 parent 9322b3d commit 4c0c55b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/src/developer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 4c0c55b

Please sign in to comment.