[forge-issues] [JBoss JIRA] (FORGE-2268) allow wizards in the CLI to let the user configure non-required inputs

George Gastaldi (JIRA) issues at jboss.org
Thu Mar 5 15:29:49 EST 2015


    [ https://issues.jboss.org/browse/FORGE-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046796#comment-13046796 ] 

George Gastaldi edited comment on FORGE-2268 at 3/5/15 3:29 PM:
----------------------------------------------------------------

It could be enabled in the CLI provider itself. 
If you want to try as an option in camel, you could fetch the {{UIPrompt}} object from the {{UIExecutionContext}} and call the prompt methods as desired in the {{execute(UIExecutionContext)}} method. 


was (Author: gastaldi):
It could be enabled in the CLI provider itself. 
If you want to try as an option in camel, you could fetch the {{UIPrompt}} object from the {{UIExecutionContext}} and call the prompt methods as desired. 

> allow wizards in the CLI to let the user configure non-required inputs
> ----------------------------------------------------------------------
>
>                 Key: FORGE-2268
>                 URL: https://issues.jboss.org/browse/FORGE-2268
>             Project: Forge
>          Issue Type: Feature Request
>            Reporter: James Strachan
>
> we're creating wizards for creating new camel components and endpoints. Pretty much all of these have a large number of possible input properties. However most of them are not required.
> I've hacked a multi-page wizard; the 2nd page adds all the non-required inputs to the builder. The CLI then ignores them all and accepts the default values ;)
> It would be nice if there a way prompt the user with something like...
> {code}
> Would you like to change any of the 12 inputs [Yn]: 
> Y
> [1] foo
> [2] bar
> ...
> [12] thingy...
> 2
> enter the value for property bar with default value [123] :
> 456
> property bar set to 456
> Would you like to change any of the 12 inputs [Yn]: 
> (repeat until n)
> {code}
> i.e. folks can just hit an extra enter to not bother entering any values, or they can keep hitting 'y' then picking the number of the input to change, then the value and enter



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the forge-issues mailing list