@smbcloud / cli / commits / 4977910

cleanup

Seto Elkahfi committed May 23, 2025 at 16:17 UTC 4977910b525f01812ccde4403a44bd308432e9f7
3 files changed +9 -5
crates/cli/src/deploy/config.rs
+1 -1
@@ -66,7 +66,7 @@ impl Config {
66 .join(".ssh")
67 .join(format!("id_{}@smbcloud.xyz", self.name));
68 let key_path_str = key_path.to_string_lossy().to_string();
69 - println!("Use key path: {}", key_path_str);
69 + // println!("Use key path: {}", key_path_str);
70 key_path_str
71 }
72 }
crates/cli/src/deploy/git.rs
+1 -1
@@ -41,7 +41,7 @@ pub async fn remote_deployment_setup<'a>(
41
42 spinner.stop_and_persist(
43 &succeed_symbol(),
44 - succeed_message("Deployment setup complete."),
44 + succeed_message("Valid deployment setup."),
45 );
46
47 Ok(smbcloud)
crates/cli/src/deploy/mod.rs
+7 -3
@@ -15,9 +15,13 @@ use smbcloud_networking::environment::Environment;
15 use spinners::Spinner;
16
17 pub async fn process_deploy(env: Environment) -> Result<CommandResult> {
18 + // Check credentials.
19 protected_request(env).await?;
20 +
21 + // Check config.
22 let config = check_config().await?;
23
24 + // Check remote repository setup.
25 let repo = match Repository::open(".") {
26 Ok(repo) => repo,
27 Err(_) => {
@@ -47,10 +51,10 @@ pub async fn process_deploy(env: Environment) -> Result<CommandResult> {
51 if let Ok(text) = std::str::from_utf8(data) {
52 for line in text.lines() {
53 if line.contains("> next build") {
50 - println!("{} {}", "Building the app", succeed_symbol(),);
54 + println!("Building the app {}", succeed_symbol());
55 }
56 if line.contains("Start hagerstenstreetcut") {
53 - println!("{} {}", "Restarting the server", succeed_symbol(),);
57 + println!("Restarting the server {}", succeed_symbol());
58 }
59 }
60 }
@@ -73,7 +77,7 @@ pub async fn process_deploy(env: Environment) -> Result<CommandResult> {
77 Ok(_) => Ok(CommandResult {
78 spinner,
79 symbol: succeed_symbol(),
76 - msg: succeed_message("Your app has been successfully deployed."),
80 + msg: succeed_message("Deployment complete."),
81 }),
82 Err(e) => Err(anyhow!(fail_message(&e.to_string()))),
83 }