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

Call zef as a library #27

Open
JJ opened this issue Oct 30, 2019 · 9 comments
Open

Call zef as a library #27

JJ opened this issue Oct 30, 2019 · 9 comments

Comments

@JJ
Copy link
Contributor

JJ commented Oct 30, 2019

I'm not so sure this is possible right now, but it would be great if we could call it directly from the program without the need to get out to the shell and invoke it.

@niner
Copy link

niner commented Oct 30, 2019

The zef script is literally just:

#!/usr/bin/env perl6

use Zef::CLI;

The whole Zef codebase is very well structured. Alas, I don't think there are any guarantees about API stability. The question remains: why do you want to use zef in your program in the first place?

@FCO
Copy link

FCO commented Oct 30, 2019

I have the same problem on 6pm. I've been working on this: FCO/zef@1c95922 to PR zef... but I still couldn't remove the no precompilation so I couldn't PR it yet...
Maybe something like that could be a solution for that...

@AlexDaniel
Copy link
Member

Why is this in Sake repository?

@JJ
Copy link
Contributor Author

JJ commented Oct 30, 2019

@AlexDaniel so that we could have default support for install targets, for instance. But as @niner says, it's likely that we can do that directly from the Sakefile. I'll give it a try and propose an example to close this issue.

@JJ
Copy link
Contributor Author

JJ commented Oct 30, 2019

@AlexDaniel
Copy link
Member

You sure you didn't mean to open it in https://github.com/ugexe/zef/issues ?

@JJ
Copy link
Contributor Author

JJ commented Oct 30, 2019

@AlexDaniel not really. I already did that. What I want to show (again) is why that would be useful.
If you look at tools such as Grunt or Gulp, they include plugins and ways of accessing native language facilities from within itself.

@niner
Copy link

niner commented Oct 30, 2019

But what exactly would Sake use the Zef libraries for?

@JJ
Copy link
Contributor Author

JJ commented Oct 30, 2019 via email

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

4 participants