Skip to content

Accept arguments for command in plugin definition #1552

@danielkza

Description

@danielkza

Currently plugin definitions only accept an executable, so there is no way to pass some pre-defined arguments to precede the ones from the template invocation.

As a (somewhat contrived) example, If i want a plugin to evaluate a python expression, I should be able to do:

plugins:
  py: ["python3", "-c"]
{{ py "print('Hello, world')" }}

So that I don't need to have "-c" in every invocation.

Metadata

Metadata

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions