leaanthony
Bizarre build error
Had someone send over an issue stating the task module was failing to build on Linux. Works fine on Windows. The error is:
Turns out there is a post out there in the big wide world where someone has exactly the same error. Works fine on my windows machine.
Have you seen this? https://www.spinics.net/lists/fedora-devel/msg316093.html
3 replies
Embedding the CLI
I'm looking at using task as the main task orchestrator for Wails v3. I've been looking at the options for
task.Executor
and have something reasonable up and running. Ideally, I'd like to give Wails users the full power of the task CLI so have looked at what it might mean to "pass through" the cli args to the current task cli main method. The only issues I can see are an internal logger package and tricking Cobra into trimming the first arg out.
So the options seem to be:
1. Hack the current task cli main method so I can call it with pass through args
2. Reimplement the main method and try to keep parity with task releases
3. Create a public method in task that accepts a []string
of args that gets processed by Cobra which external apps can hook into
Just wondering what your recommendation might be. Thanks 👍
PS: I'm aware this is a very specialist request so "you're on your own" is a valid response 😂2 replies