brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-463) Improve CLI login feedback
Date Tue, 04 Apr 2017 13:15:42 GMT

    [ 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 <geoff.macartney@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)

Mime
View raw message