-
Notifications
You must be signed in to change notification settings - Fork 183
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: global alias for included justfile #27
Comments
The justfile setup is a pain point that's been bugging me for a while. I think longterm what we want is to do a I don't mind doing an alias but perhaps aliasing just itself? I'd like to avoid us having custom commands (which is why we picked just in the first place, heh). What do you think? |
@castrojo We could alias |
thank you for the clarification. Always good to know about design decisions. 👍 |
If you made custom commands I wouldn't call it I would probably call it |
Once this just PR merges, the unstable flag could be added as a envvar in profile.d, making it possible to instruct users to use justfile includes. |
Aliasing default:
@just --list This can be easily fixed by adding the However, this is no longer a matter of the startingpoint repo, but main/config. I'll close this issue and create a new one on another repo. |
A few days ago I started my journey for a customized ublue project. Thanks for this great "startingpoint" repo! It made my start so easy!!
I started playing around with the provided
justfile
. First I thought I could just runjust
from the terminal but that gave me the errorerror: No justfile found
. Should have read the documentation first ;). After doing so I usedjust --justfile /etc/justfile
to get started. But this is cumbersome to use. Thanks to your hint in the documentation I know about include directives, but since this is marked as "currently unstable" I dug a little deeper and found forwarding-alias.Which brings me to the following suggestion.
Suggestion
Since the provided
justfile
has commands in it likeupdate
andchangelogs
I thought, wouldn't it be nice to just runublue update
orublue changelogs
etc.This could be achieved by simply creating a global alias with:
alias ublue="just --justfile /etc/justfile
Possible implementation
To set the global alias I would create
ublue-just.sh
under/etc/profile.d/
with the mentionedalias
in it.Here an example from my repo:
https://github.com/tepene/ublue-bayou/blob/main/etc/profile.d/ublue-just.sh
Example usage
What do you think about it? Let me know, i would create a PR if you think my proposal is good for the project.
The text was updated successfully, but these errors were encountered: