]
George Gastaldi updated FORGE-2574:
-----------------------------------
Summary: Introduce ShellContext.getCommandLine() (was: Executing an addon command
from CLI and passing in all required options from command line, causes interactive mode
regardless)
Introduce ShellContext.getCommandLine()
---------------------------------------
Key: FORGE-2574
URL:
https://issues.jboss.org/browse/FORGE-2574
Project: Forge
Issue Type: Bug
Affects Versions: 3.0.0.Beta1
Reporter: Claus Ibsen
Fix For: 3.0.0.Beta2
See ticket for background
https://github.com/fabric8io/fabric8/issues/5586
We have noticed this happens when the addon command is using a wizard (steps). We have a
command that depends on what Camel component you chose, has N+ steps with at most 20
options per step. The options is a mix between required=true or required=false options.
However 98% is required=false.
What we have noticed is that if we provide all the nessasary information as arguments to
the command, then no matter what, then forge turns on the interactive mode, and prompts
the end users to select/enter values for all the options in the *LAST* step.