Skip to content

Conversation

@cypriansakwa
Copy link

Description

Problem*

Resolves #50: Add a version command for checking noirup's version installed

Summary*

This PR adds a robust version command to the noirup Bash script.

  • Running ./noirup version will now print the version from version.txt if present.
  • If version.txt is missing, the script falls back to displaying the latest git tag, commit hash, and date.
  • This approach ensures users and developers always see accurate version information, whether using a release or working from source.

Additional Context

  • The version check occurs before any other script logic for reliability and speed.
  • For future releases, update version.txt to reflect the latest version.
  • Developers working in a git repo without version.txt will see dynamic version details.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings (N/A for Bash).

@cypriansakwa
Copy link
Author

Hi @Savio-Sou ! Just a gentle reminder to take a look at this PR when you have a moment. Your feedback would be greatly appreciated. Thank you!

@cypriansakwa
Copy link
Author

Hi. Just a gentle reminder to take a look at this PR when you have a moment. Your feedback would be greatly appreciated. Thank you!

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.

1 participant