From 6f912dc9c450034859c0c2644574003b7348fcc6 Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Sun, 14 May 2023 09:19:12 +0530 Subject: [PATCH 1/8] suggest next command --- cargo-shuttle/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index 49ee556da..2e51d2847 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -1036,6 +1036,7 @@ impl Shuttle { } progress_bar.finish_and_clear(); println!("{project}"); + println!("Run `cargo shuttle deploy` to deploy the project"); Ok(()) } From 292c7f98da6d59a01f7b9e2b6b394c90baa95299 Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Sun, 14 May 2023 09:58:52 +0530 Subject: [PATCH 2/8] suggest next command --- cargo-shuttle/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index 2e51d2847..c141c1583 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -236,6 +236,8 @@ impl Shuttle { self.load_project(&mut project_args)?; self.project_create(&self.client()?, IDLE_MINUTES).await?; + } else { + println!("Run `cargo shuttle project start` to create project environment on Shuttle"); } Ok(()) From 0a3fff2915542f6613173ce7bf6bfe16d8138fee Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Sun, 14 May 2023 10:10:16 +0530 Subject: [PATCH 3/8] suggest next command --- cargo-shuttle/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index c141c1583..e1ddcd2b8 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -608,6 +608,14 @@ impl Shuttle { addr ); + println!(" + To host the application on Shuttle run + `cargo shuttle project start` + if project environment is not created previously and then run + `cargo shuttle deploy` + Your application will be hosted at https://{}.shuttleapp.rs +", service_name); + let start_request = StartRequest { ip: addr.to_string(), }; From 26458e5948945e94c39efcb5e641c3a7307243ac Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Mon, 15 May 2023 21:04:36 +0530 Subject: [PATCH 4/8] fix: suggest next command --- cargo-shuttle/src/lib.rs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index bf9c0f2a7..1fe771e95 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -242,7 +242,10 @@ impl Shuttle { self.load_project(&mut project_args)?; self.project_create(&self.client()?, IDLE_MINUTES).await?; } else { - println!("Run `cargo shuttle project start` to create project environment on Shuttle"); + println!( + "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ + Run `cargo shuttle deploy` to deploy your Shuttle service." + ); } Ok(()) @@ -326,6 +329,7 @@ impl Shuttle { progress_bar.finish_and_clear(); println!("{}\n{}", "Successfully stopped service".bold(), service); + println!("Run `cargo shuttle deploy` to re-deploy your service."); Ok(()) } @@ -427,6 +431,7 @@ impl Shuttle { let table = get_deployments_table(&deployments, proj_name.as_str()); println!("{table}"); + println!("Run `cargo shuttle logs ` to get logs for a given deployment."); Ok(()) } @@ -625,13 +630,10 @@ impl Shuttle { addr ); - println!(" - To host the application on Shuttle run - `cargo shuttle project start` - if project environment is not created previously and then run - `cargo shuttle deploy` - Your application will be hosted at https://{}.shuttleapp.rs -", service_name); + println!( + "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ + Run `cargo shuttle deploy` to deploy your Shuttle service." + ); let start_request = StartRequest { ip: addr.to_string(), @@ -1106,7 +1108,7 @@ impl Shuttle { } progress_bar.finish_and_clear(); println!("{project}"); - println!("Run `cargo shuttle deploy` to deploy the project"); + println!("Run `cargo shuttle deploy` to deploy your Shuttle service."); Ok(()) } From 9e20d7c0dfdeabc1049dd15683008637c32a7ef7 Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Tue, 16 May 2023 19:08:26 +0530 Subject: [PATCH 5/8] fix: suggest new command --- cargo-shuttle/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index 1fe771e95..91cb9c19f 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -630,11 +630,6 @@ impl Shuttle { addr ); - println!( - "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ - Run `cargo shuttle deploy` to deploy your Shuttle service." - ); - let start_request = StartRequest { ip: addr.to_string(), }; From 2a131d1220aeda1d20a3f5fa780c94c48e6ed892 Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Tue, 16 May 2023 21:31:53 +0530 Subject: [PATCH 6/8] fix: suggest next command --- cargo-shuttle/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index 91cb9c19f..875bd6e3f 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -1020,6 +1020,7 @@ impl Shuttle { client, ) .await?; + println!("Run `cargo shuttle deploy` to deploy your Shuttle service."); Ok(()) } @@ -1076,6 +1077,7 @@ impl Shuttle { client, ) .await?; + println!("Run `cargo shuttle project start` to recreate project environment on Shuttle."); Ok(()) } @@ -1103,7 +1105,6 @@ impl Shuttle { } progress_bar.finish_and_clear(); println!("{project}"); - println!("Run `cargo shuttle deploy` to deploy your Shuttle service."); Ok(()) } From 29138adddc7927a02cb36ef3978735b5febd5678 Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Tue, 16 May 2023 22:20:24 +0530 Subject: [PATCH 7/8] fix: suggest next command --- cargo-shuttle/src/lib.rs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index 875bd6e3f..4e5cf9235 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -243,8 +243,7 @@ impl Shuttle { self.project_create(&self.client()?, IDLE_MINUTES).await?; } else { println!( - "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ - Run `cargo shuttle deploy` to deploy your Shuttle service." + "Run `cargo shuttle project start` to create a project environment on Shuttle." ); } @@ -803,6 +802,10 @@ impl Shuttle { trace!(status = ?err, "stopping the runtime errored out"); }); } + println!( + "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ + Run `cargo shuttle deploy` to deploy your Shuttle service." + ); return Ok(()); } @@ -852,6 +855,13 @@ impl Shuttle { }; } + if signal_received { + println!( + "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ + Run `cargo shuttle deploy` to deploy your Shuttle service." + ); + } + Ok(()) } @@ -888,6 +898,11 @@ impl Shuttle { ); } + println!( + "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ + Run `cargo shuttle deploy` to deploy your Shuttle service." + ); + Ok(()) } From 22e627bbc3878f5f8efb0f8b561bbacd30e2b623 Mon Sep 17 00:00:00 2001 From: Syed Fasiuddin <66054777+SyedFasiuddin@users.noreply.github.com> Date: Wed, 17 May 2023 13:08:04 +0530 Subject: [PATCH 8/8] fix: suggest next command --- cargo-shuttle/src/lib.rs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index 4e5cf9235..1cf861850 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -791,6 +791,11 @@ impl Shuttle { } } + println!( + "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ + Run `cargo shuttle deploy` to deploy your Shuttle service." + ); + // If prior signal received is set to true we must stop all the existing runtimes and // exit the `local_run`. if signal_received { @@ -802,10 +807,6 @@ impl Shuttle { trace!(status = ?err, "stopping the runtime errored out"); }); } - println!( - "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ - Run `cargo shuttle deploy` to deploy your Shuttle service." - ); return Ok(()); } @@ -855,13 +856,6 @@ impl Shuttle { }; } - if signal_received { - println!( - "Run `cargo shuttle project start` to create a project environment on Shuttle.\n\ - Run `cargo shuttle deploy` to deploy your Shuttle service." - ); - } - Ok(()) }