Skip to content

Syntax for incorporating variables in command argument #408

@Canop

Description

@Canop

Goal is to enable injecting in the commands values coming from

I'm not settled on a syntax right now but it must support arguments.

Maybe something like

[jobs.ex-ask]
vars.MSRV = "cargo::msrv"
command = [
    "cargo",
    "+${MSRV}",
    "check",
    "--all-targets",
]
# A task dedicated to checking cargo can be compiled with the MSRV
[jobs.check-msrv]
vars.example_name = {
    source = "user::input",
    question = "Name of the example to run?"
}
command = ["cargo", "run", "--example", "${example_name}"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions