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

support wildcard imports if justfiles #1885

Open
woutervh opened this issue Feb 3, 2024 · 6 comments
Open

support wildcard imports if justfiles #1885

woutervh opened this issue Feb 3, 2024 · 6 comments

Comments

@woutervh
Copy link

woutervh commented Feb 3, 2024

In order to create re-usable toplevel justfiles, I started to split them up per command/tool in a .just-subfolder

For the moment I need to import them file by file and hardcoded each filename:

import '.just/git.just'
import '.just/poetry.just'
import '.just/precommit.just'
...
...


I prefer to import all files via wildcard:

import '.just/*.just'

...

@woutervh woutervh changed the title support wildcard import support wildcard imports if justfiles Feb 3, 2024
@casey
Copy link
Owner

casey commented Feb 3, 2024

I think this is actually pretty doable. This is technically a breaking change, since someone could have a path with * in it, which this would break, but that's so vanishingly rare I think we can do this without worrying. This would make a great first issue if anyone feels like taking a crack at it.

@woutervh
Copy link
Author

woutervh commented Feb 8, 2024

related to imports: how difficult would it be to support import by url?

import http://example.com/justfile

@laniakea64
Copy link
Contributor

related to imports: how difficult would it be to support import by url?

This was discussed in #1799

@abdulazeem-tk4vr
Copy link

Hi!
Can I try this out and get it assigned to me?

@casey
Copy link
Owner

casey commented Mar 30, 2024

I don't really assign issues, but you're free to take a crack at it! I'm super slammed at the moment with another project, so I might not be able to review any PRs for a month or more.

@abdulazeem-tk4vr
Copy link

abdulazeem-tk4vr commented Mar 30, 2024

Oh, that's alright. I shall try to fix this. btw if you do need any help on your project, I'm happy to help. I have experience contributing full-time to a TCP socket communication library that facilitates p2p networking for the Shardeum blockchain, using Neon bindings, Rust, and Tokio.
https://gitlab.com/shardus/shardus-net

I am just trying to make some contributions to the open-source community. Although I am not a new programmer / developer, I am new to open source and I want to get used to contributing to random codebases.
https://www.linkedin.com/in/abdulazeem-shaik/

Can contribute in TypeScript (Node.js), Rust, Java & Kotlin (Android App Dev), and C++ ( Competitive Programming ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants