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

Args for subcommands #5

Open
AlexAUT opened this issue Nov 29, 2022 · 3 comments
Open

Args for subcommands #5

AlexAUT opened this issue Nov 29, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@AlexAUT
Copy link
Contributor

AlexAUT commented Nov 29, 2022

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
Copy link
Owner

Shatur commented Nov 29, 2022

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

@Shatur Shatur added the question Further information is requested label Nov 29, 2022
@AlexAUT
Copy link
Contributor Author

AlexAUT commented Nov 29, 2022

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
Copy link
Owner

Shatur commented Nov 29, 2022

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 :)

@Shatur Shatur added enhancement New feature or request and removed question Further information is requested labels Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants