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

Enhance the version/-V command #48

Closed
bradlarsen opened this issue Apr 24, 2023 · 0 comments · Fixed by #49
Closed

Enhance the version/-V command #48

bradlarsen opened this issue Apr 24, 2023 · 0 comments · Fixed by #49
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bradlarsen
Copy link
Collaborator

It would be useful for troubleshooting if Nosey Parker's -V command, used to show version info, would include more detail than just the declared version number, such as Git commit hash.

A library that would be helpful for implementing this: https://docs.rs/vergen/latest/vergen/

It would also be useful to add a top-level version command that would emit more information than the simple -V option.

@bradlarsen bradlarsen added enhancement New feature or request help wanted Extra attention is needed labels Apr 24, 2023
bradlarsen added a commit that referenced this issue Apr 25, 2023
bradlarsen added a commit that referenced this issue Apr 25, 2023
The output of the command looks like this:
```
$ noseyparker --version
noseyparker 0.13.0-dev

Build Configuration:

    Build Timestamp:    2023-04-25T20:20:07.581359700Z

    Commit Timestamp:   2023-04-25T16:18:14.000000000-04:00
    Commit Branch:      version-info
    Commit SHA:         ba1b6d9

    Cargo Features:
    Debug:              true
    Optimization:       0
    Target Triple:      x86_64-unknown-linux-gnu

Build System:

    OS:                 Ubuntu
    OS Version:         Linux 22.04 Ubuntu

    CPU Vendor:         GenuineIntel
    CPU Brand:          Intel(R) Xeon(R) CPU @ 2.30GHz
    CPU Cores:          16

    rustc Version:      1.67.1
    rustc Channel:      stable
    rustc Host Triple:  x86_64-unknown-linux-gnu
    rustc Commit Date:  2023-02-07
    rustc Commit SHA:   d5a82bbd26e1ad8b7401f6a718a9c57c96905483
    rustc LLVM Version: 15.0
```

Fixes #48.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant