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

Define function in include #2512

Open
gsemet opened this issue Dec 10, 2024 · 2 comments
Open

Define function in include #2512

gsemet opened this issue Dec 10, 2024 · 2 comments

Comments

@gsemet
Copy link

gsemet commented Dec 10, 2024

Hello

I often see myself fetching some remote bash script just to have access to a few function in my recipes. Would it be possible to define a few bash functions directly in justfiles ?

Thanks

@laniakea64
Copy link
Contributor

Yes it is possible, but specifically how the best way to do it can vary depending on usage. Could you please provide an example justfile where you're currently using remote bash script?

See #1707 for some possible ideas

@casey
Copy link
Owner

casey commented Dec 10, 2024

Also see #2079, which would allow defining a shell prelude to be executed before all shell invocations.

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

No branches or pull requests

3 participants