You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is a bit related to the questions #1988 and #2341. Instead of just forwarding the recipe parameters I would like to create a new (not necessarily variadic) parameter which in turn is forwarded to the recipe.
For a simple example assume a game engine for board/card games and we like to select the game and provide additional parameters from commandline (number of players, size, colors, etc.):
just play-multiplayer "ludo" 6
just play-singleplayer "solitaire"
I am looking for a more flexible way to inject recipe specific parameters.
creategamegame_args='':
game-engine --game={{game}}{{game_args}}play-multiplayergamenum_players: (create game "--players={{num_players}}")
# run game-engine etc.play-singleplayergame: (create game)
# run game-engine etc.
I found that it kind of can be achieved with variadic parameters.
# extension to the example justfilevariadic-creategame*game_args='':
game-engine --game={{game}}{{game_args}}play-multiplayer2gamenum_players: (variadic-create game "--players="num_players)
# run game-engine etc.
However it puts an additional space character in the output which is not tolerated for my use case.
just play-multiplayer2 "ludo" 6
# output:
game-engine "ludo" --players= 6
^------------ unwanted space here
Is it possible to tell just to "pre-parse" and resolve parameters (as in "--player={{num_players}}") before calling the recipe dependency?
The text was updated successfully, but these errors were encountered:
This issue is a bit related to the questions #1988 and #2341. Instead of just forwarding the recipe parameters I would like to create a new (not necessarily variadic) parameter which in turn is forwarded to the recipe.
For a simple example assume a game engine for board/card games and we like to select the game and provide additional parameters from commandline (number of players, size, colors, etc.):
I am looking for a more flexible way to inject recipe specific parameters.
I found that it kind of can be achieved with variadic parameters.
However it puts an additional space character in the output which is not tolerated for my use case.
Is it possible to tell just to "pre-parse" and resolve parameters (as in
"--player={{num_players}}"
) before calling the recipe dependency?The text was updated successfully, but these errors were encountered: