-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add version command to print the cargo version. #487
Conversation
@mcdee can you please rebase your branch? Thanks! |
Done. |
@mcdee needs |
Updated. |
tests/cli/version.rs
Outdated
use std::{ffi::OsStr, str}; | ||
|
||
#[test] | ||
fn test_versionx() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One apparent typo but otherwise looks good
This adds a command
tmkms version
which simply prints out the version number as per the cargo information (or "unknown" if that is not available). It is useful for tools that want to check which version of the code is running.(The version is available in the logs from startup, but logs rotate so this is often practically unavailable.)