Shatur / neovim-tasks

A statefull task manager focused on integration with build systems.
GNU General Public License v3.0
108 stars 10 forks source link

Args for subcommands #5

Open AlexAUT opened 2 years ago

AlexAUT commented 2 years ago

Is there a way to set the task arguments when the task is part of another task?

For example when running Task start cmake debug it will call build but the task_arguments for build will not be applied (--parallel) but it works when calling the task directly Task start cmake build

Shatur commented 2 years ago

You can set args as a part of your config. But you can't set them as a part of a :Task command.

AlexAUT commented 2 years ago

How would I do that exactly? I tried through :Task set_task_param cmake build args but that only works for :Task start cmake build and not for :Task start cmake debug.

Or do you mean by injecting a custom task with the parameters hardcoded as described in the last sentence of the readme?

Apart from that the plugin works great, thanks for the work :).

Shatur commented 2 years ago

How would I do that exactly?

I thought that you can configure args for build in your config and that they would be propagated to the run command. But I was wrong. I think we should add a way to configure it, but I not sure about the design. Suggestions are welcome.

Apart from that the plugin works great, thanks for the work :).

Nice to hear :)