[ 
https://issues.apache.org/jira/browse/SQOOP-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398051#comment-13398051
 ] 

Cheolsoo Park commented on SQOOP-494:
-------------------------------------

Here is what it looks like:

*1) show server:*

{code}
sqoop:000> show server
Usage: show server
-a,--all       Display all information
-h,--host      Display server host name
-p,--port      Display server port number
-w,--webapp    Display server web app name


Select one [w/p/a/h]: h
{code}

*2) show connector*

{code}
sqoop:000> show connector 
Usage: show connector
-a,--all          Display all connectors
-c,--cid <cid>    Display the connector with cid

Display all connectors [y/n]: y
{code}

Note that no further question is asked since we're going to display all 
connectors. But if the answer is no, we ask another question for the connector 
id as below:

{code}
sqoop:000> show connector 
Usage: show connector
-a,--all          Display all connectors
-c,--cid <cid>    Display the connector with cid

Display all connectors [y/n]: n
Display the connector with cid: 12345
{code}

*3) show version*

{code}
sqoop:000> show version 
Usage: show version
-a,--all         Display all versions
-c,--client      Display client version
-p,--protocol    Display protocol version
-s,--server      Display server version


Select one [s/c/p/a]: a
{code}

*4) set server*

{code}
sqoop:000> set server 
Usage: set server
-h,--host <host>         Host name to invoke server resources
-p,--port <port>         Port number to invoke server resources
-w,--webapp <webbapp>    Web app to invoke server resources

Host name to invoke server resources: localhost
Port number to invoke server resources: 8080
Web app to invoke server resources: sqoop
{code}
                
> Create client infrastructure to allow interactive selection of options of a 
> command.
> ------------------------------------------------------------------------------------
>
>                 Key: SQOOP-494
>                 URL: https://issues.apache.org/jira/browse/SQOOP-494
>             Project: Sqoop
>          Issue Type: Task
>            Reporter: Arvind Prabhakar
>            Assignee: Cheolsoo Park
>             Fix For: 2.0.0
>
>         Attachments: SQOOP-494.patch, SQOOP-494.patch, SQOOP-494.patch
>
>
> For example, if a command does not have full options specified, instead of 
> displaying full help, the shell could get into an interactive session to 
> gather the options one by one from the user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to