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

feat: polish CLI after 0.13 updates #750

Merged
merged 3 commits into from
Mar 27, 2023

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Mar 25, 2023

Description of change

This polishes the resource tables by:

  • Adding the service name in bold to the table description
  • Making the table headers bold
  • Making the static folder display only the name of the folder, not the full path
  • Changing the small tables to not use full width (making them consistent with the secrets table).
  • Updating the existing tables (deployment list, secrets) with the above changes to be consistent.
  • Making the service name bold in cargo shuttle status output.

What I did not do in this PR was remove the cargo shuttle secrets command, since I don't want to make this last-minute PR too large. I suggest we do it for the next release.

How Has This Been Tested (if applicable)?

Tested locally on this branch: #749, with the postgres poem example, but with all resources (database, static, persist, secrets). Here is what it looks like:

image

image

image

Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

I happy to merge this as is.

common/src/models/resource.rs Outdated Show resolved Hide resolved
Comment on lines 123 to +129
let path = serde_json::from_value::<PathBuf>(folder.data.clone())
.unwrap()
.display()
.to_string();
.file_name()
.expect("static folder path should have a final component")
.to_str()
.expect("static folder file name should be valid unicode")
.to_owned();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we rather get it from folder.config somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I didn't think of that! Yes, that should be possible. I likely won't have time to address these today, by the way, but I can get to them in the morning.

@oddgrd oddgrd merged commit 92e3be1 into shuttle-hq:main Mar 27, 2023
@oddgrd oddgrd deleted the feature/eng-518-update-the-endpoint branch March 27, 2023 09:42
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