Skip to content
Discussion options

You must be logged in to vote

I've reduced the complexity a bit more with a new approach. Instead of having a difference between remaining_args and forward_args. forward_args handles both cases. It essentially forwards all the args to a module which are not mapped by the templating to a positional argument:

```yaml
run-command:
  desc: "Run a shell command on the device"
  modules:
    - module: shell
      forwardArgs: true
dutctl run my-device run-command ls -la /tmp
# shell receives: ["ls", "-la", "/tmp"]

When combined with command-level templating, the first N runtime args (one per declared args entry) are consumed for template substitution. The remaining args are forwarded:

flash-and-run:
  desc: "Flash firmware…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@RiSKeD
Comment options

RiSKeD Dec 8, 2025
Maintainer Author

Comment options

RiSKeD
Feb 19, 2026
Maintainer Author

You must be logged in to vote
8 replies
@AtomicFS
Comment options

@RiSKeD
Comment options

RiSKeD Feb 26, 2026
Maintainer Author

@AtomicFS
Comment options

@RiSKeD
Comment options

RiSKeD Feb 26, 2026
Maintainer Author

Answer selected by RiSKeD
@RiSKeD
Comment options

RiSKeD Feb 26, 2026
Maintainer Author

@RiSKeD
Comment options

RiSKeD Feb 26, 2026
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants