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

fix(cargo-shuttle): don't print platform info in unrelated commands #1902

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

jonaro00
Copy link
Member

No description provided.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR modifies the Shuttle command-line tool to prevent printing platform information for specific commands, improving output clarity and relevance.

  • Added conditional check in cargo-shuttle/src/lib.rs to skip platform info printing for Feedback, Generate, and Upgrade commands
  • Streamlined command output by reducing unnecessary information for non-deployment related operations
  • Enhanced user experience by providing more focused and relevant output based on the executed command

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +184 to +187
if !matches!(
args.cmd,
Command::Feedback | Command::Generate(_) | Command::Upgrade { .. }
) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using a constant or enum for these command types to improve maintainability

@jonaro00 jonaro00 merged commit e58d589 into shuttle-hq:main Oct 10, 2024
0 of 23 checks passed
@jonaro00 jonaro00 deleted the version-info branch October 10, 2024 11:34
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

This PR updates the cargo-shuttle package version and modifies command output behavior. Key changes include:

  • Incremented cargo-shuttle version from 0.48.2 to 0.48.3 in cargo-shuttle/Cargo.toml
  • Updated CHANGELOG.md to reflect the version change and new behavior
  • Modified cargo-shuttle/src/lib.rs to suppress platform info output for specific commands

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants