hexylena / galaxyxml

XML Generation libraries for Galaxy Tool/ToolDeps XML
Apache License 2.0
6 stars 5 forks source link

Add When class to complete Conditional class #11

Closed khillion closed 7 years ago

khillion commented 7 years ago

As the when tag is required for conditional, I have added the When class. It allows any InputParameter as child. Ref.

It also allows to have conditional within conditional.

Thanks.

hexylena commented 7 years ago

Added test case, if it passes, great, merge it or I will whenever I remember.

Looks like the command line representation of the conditionals is currently wrong, but that's unsurprising. I didn't put nearly enough love into the auto-command line from parameters.