#1: Define aliases from CLI when executing recipe
------------------------+-----------------------
Reporter: rpazdera | Owner: somebody
Type: task | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Keywords: | Blocked By:
Blocking: |
------------------------+-----------------------
This feature could be useful for parametrizing recipe execution. Something
very similar is used by GNU make utility for overriding variables [#link1
(1)].
In Makefile, the CLI assignment overrides the value all the way through
the
file. This could be useful later for changing recipe parameters when we
try to
integrate LNST with beaker. Here's an example:
{{{./nettestctl.py -e -a alias=value -A alias=value -r recipe.xml run}}}
It could be done in two modes:
{{{-a, --define_alias name=value}}}
this would define the alias on a global level. Aliases defined this
way could be redefined by definitions within the recipe
{{{-A, --override_alias name=value}}}
this version would override all future recipe definitions and always
prefer this value over any definitions within the recipe
The XmlTemplates module is prepared for this already.
[=#link1 (1)]
http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_...
--
Ticket URL: <
https://fedorahosted.org/lnst/ticket/1>
lnst <
http://example.org/>
My example project