Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggest next logical command #915

Merged
merged 10 commits into from
May 17, 2023
18 changes: 18 additions & 0 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,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 a project environment on Shuttle."
);
}

Ok(())
Expand Down Expand Up @@ -324,6 +328,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(())
}
Expand Down Expand Up @@ -425,6 +430,7 @@ impl Shuttle {
let table = get_deployments_table(&deployments, proj_name.as_str());

println!("{table}");
println!("Run `cargo shuttle logs <id>` to get logs for a given deployment.");

Ok(())
}
Expand Down Expand Up @@ -785,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 {
Expand Down Expand Up @@ -881,6 +892,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(())
}

Expand Down Expand Up @@ -1013,6 +1029,7 @@ impl Shuttle {
client,
)
.await?;
println!("Run `cargo shuttle deploy` to deploy your Shuttle service.");

Ok(())
}
Expand Down Expand Up @@ -1069,6 +1086,7 @@ impl Shuttle {
client,
)
.await?;
println!("Run `cargo shuttle project start` to recreate project environment on Shuttle.");

Ok(())
}
Expand Down