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]: Add a note in Marker's CLI if there is a newer version available #289

Open
xFrednet opened this issue Oct 11, 2023 · 0 comments
Open
Labels
A-marker-cargo Area: All things connected to `cargo_marker` C-enhancement Category: New feature or request E-good-first-issue Participation: Good for newcomers

Comments

@xFrednet
Copy link
Member

Summary

I would like Marker's CLI to have a small check if a newer version is available. If this is a case, a small note should be added, letting the user know that they can update Marker, if they'd like to.

I'm thinking of something simple like this:

$ cargo marker
        Info Marker v0.3 is avilable

      Marker compiling lints
    Updating crates.io index
[...]

This should just be an info and nothing more severe, as CIs should continue to work uninterrupted.


We can use Cargo's search command to check for the newest version:

cargo search cargo_marker --limit 1

We just need to parse the output and compare it to our own version.


We would also want a CLI flag to disable this behavior. Maybe --no-update-check or something similar.

@xFrednet xFrednet added C-enhancement Category: New feature or request E-good-first-issue Participation: Good for newcomers A-marker-cargo Area: All things connected to `cargo_marker` labels Oct 11, 2023
@xFrednet xFrednet changed the title [Feat]: Add a note in Marker's CI if there is a newer version available [Feat]: Add a note in Marker's CLI if there is a newer version available Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-marker-cargo Area: All things connected to `cargo_marker` C-enhancement Category: New feature or request E-good-first-issue Participation: Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant