-
-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
Goal is to enable injecting in the commands values coming from
- some user input (see [feature] Accept user input for additional launch arguments when switching jobs #404)
- cargo, eg the MSRV to have a
cargo +1.77 checktask (see Cargo.lock should be compatible with MSRV #407) - variables defined in the bacon.toml file (may be overriden per task, prefs, etc.)
- bacon itself (eg the name of the last failing test)
- other...
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}"]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels