Skip to content

Commit

Permalink
nit: suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 committed Aug 20, 2024
1 parent 31567f7 commit c3a9b7a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,19 @@ impl Shuttle {
) -> Result<CommandOutcome> {
self.beta = args.beta;
if self.beta {
if matches!(
args.cmd,
Command::Project(ProjectCommand::Stop { .. } | ProjectCommand::Restart { .. })
) {
eprintln!("This command is discontinued on the beta platform.");
if matches!(args.cmd, Command::Project(ProjectCommand::Restart { .. })) {
eprintln!("This command is discontinued on the beta platform. Deploy to start a new deployment.");
return Ok(CommandOutcome::Ok);
}
if matches!(args.cmd, Command::Status) {
eprintln!("This command is deprecated on the beta platform. Use `deployment status` instead.");
eprintln!("This command is discontinued on the beta platform. Use `deployment status` instead.");
return Ok(CommandOutcome::Ok);
}
if matches!(args.cmd, Command::Stop) {
eprintln!("This command is deprecated on the beta platform. Use `deployment stop` instead.");
if matches!(
args.cmd,
Command::Stop | Command::Project(ProjectCommand::Stop { .. })
) {
eprintln!("This command is discontinued on the beta platform. Use `deployment stop` instead.");
return Ok(CommandOutcome::Ok);
}
if matches!(args.cmd, Command::Clean) {
Expand All @@ -154,7 +154,7 @@ impl Shuttle {
args.cmd,
Command::Deployment(DeploymentCommand::Stop) | Command::Account
) {
eprintln!("This command is not supported on the legacy platform.");
eprintln!("This command is not supported on the legacy platform. Set --beta or SHUTTLE_BETA=true.");
return Ok(CommandOutcome::Ok);
}
if let Some(ref url) = args.api_url {
Expand Down

0 comments on commit c3a9b7a

Please sign in to comment.