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

feature request: allow --version even when not in a jj repo #8

Open
bbigras opened this issue Jan 23, 2025 · 1 comment
Open

feature request: allow --version even when not in a jj repo #8

bbigras opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bbigras
Copy link

bbigras commented Jan 23, 2025

❯ jj-fzf --version
Error: There is no jj repo in "."
.jj-fzf-wrapped: **ERROR**: /home/bbigras/tmp: not a JJ repository

It could be useful for packaging. With nixpkgs we often "run" the app/script with --version as a minimum while building the package.

@tim-janik
Copy link
Owner

❯ jj-fzf --version
Error: There is no jj repo in "."
.jj-fzf-wrapped: ERROR: /home/bbigras/tmp: not a JJ repository

It could be useful for packaging. With nixpkgs we often "run" the app/script with --version as a minimum while building the package.

Yeah, thanks for submitting a Nix packaging request.
I'll definitely make --version work w/o a jj repo at some point, but it'll take some shuffeling.
Will be harder to make it work for --help as well, but ideally both should work.

@tim-janik tim-janik self-assigned this Jan 24, 2025
@tim-janik tim-janik added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants