You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/04 13:15:42 UTC

[jira] [Commented] (BROOKLYN-463) Improve CLI login feedback

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

ASF GitHub Bot commented on BROOKLYN-463:
-----------------------------------------

GitHub user geomacy opened a pull request:

    https://github.com/apache/brooklyn-client/pull/42

    Improve login handling.

    See https://issues.apache.org/jira/browse/BROOKLYN-463.
    
    Prompt for user name if not supplied.
    Check for 401 Unauthorized and give tidier output.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/geomacy/brooklyn-client better-login

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-client/pull/42.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #42
    
----
commit 5df9e065b6522c418ad961025931c1cc000b0caf
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Date:   2017-04-04T13:08:18Z

    Improve login handling.
    
    See https://issues.apache.org/jira/browse/BROOKLYN-463.
    
    Prompt for user name if not supplied.
    Check for 401 Unauthorized and give tidier output.

----


> Improve CLI login feedback
> --------------------------
>
>                 Key: BROOKLYN-463
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-463
>             Project: Brooklyn
>          Issue Type: Sub-task
>            Reporter: Sam Corbett
>
> I expected a {{br login}} command to prompt for a username and password when only run with the URL for the server. Instead it exits with no useful information:
> {code}
> $ br login http://localhost:8081
> $ echo $?
> 2
> {code}
> Giving a username behaves well:
> {code}
> $ br login http://localhost:8081 sam
> Enter Password:
> {code}
> The CLI should either prompt for a username or print a usage summary when only invoked with a URL. If prompting for the username it could also allow simply {{br login}} and prompt for the endpoint parameter.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)