Open lilianmoraru opened 8 years ago
Sounds nice. Except command syntax might better look like:
commands:
build: !Group
subcommands:
cmd1: !Command ...
cmd2: !Command ...
I don't think I'll have the time to work on this soon. But it should be pretty easy to implement, because it doesn't need any changes to way containerization is done. Just requires some fiddling with the configuration. So contributions are welcome.
I think it would be great to have support for SubCommands. The idea is to be able to execute a command like this:
vagga build QtCreator3.4.0 Qt5.2.1 Ubuntu14.04.3
vagga test parser-tests yaml
instead of:vagga build-QtCreator3.4.0-Qt5.2.1-Ubuntu14.04.3
vagga test-parser-tests-yaml
When you would write for example:
vagga build
you would get the list:This could probably look something like
Supervise
is right now with thechildren
option. A!Command
could havechildren-or-some-other-keyword
(subcommands?
)Also, it would be nice if commands could also be imported from another .yaml the same way configs for containers can be imported.