Multiline Execute and Run child
I'm thinking for quite some time that we could tidy up steps by allowing multi-line Execute
and Run child
steps. I can see a different use case for each of them:
-
multiline
Execute
could allow merging of calls of multiple command into a single behave step while using a separatenmci.process
call for each, for example:* Execute """ ip link set eth1 up ip link set eth2 up """
This has IMO some potential of speedups by merging more consecutive
Execute
's to a single behave step while being more legible than current style of some steps ofExecute "command 1; command 2"
. -
Run child
invocations tend to be very long. I'd like to use multi line string here just to split it into multiple lines without a need to think about backslashes etc. I'd prefer to join with just an empty string so that veryLongArgumentWithoutSpaces can be split as well:* Run child """ process with a very long list of arguments """
What do you think about this idea?