Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB10D11D1C for ; Fri, 8 Aug 2014 10:16:12 +0000 (UTC) Received: (qmail 37956 invoked by uid 500); 8 Aug 2014 10:16:12 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 37921 invoked by uid 500); 8 Aug 2014 10:16:12 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 37898 invoked by uid 99); 8 Aug 2014 10:16:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 10:16:12 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Aug 2014 10:16:13 +0000 Received: (qmail 37653 invoked by uid 99); 8 Aug 2014 10:15:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 10:15:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 23F5994C531; Fri, 8 Aug 2014 10:15:48 +0000 (UTC) From: sjcorbett To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: BROOKLYN-15: support sha256 passw... Content-Type: text/plain Message-Id: <20140808101548.23F5994C531@tyr.zones.apache.org> Date: Fri, 8 Aug 2014 10:15:48 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user sjcorbett commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/112#discussion_r15986050 --- Diff: usage/cli/src/main/java/brooklyn/cli/Main.java --- @@ -200,6 +203,57 @@ public Void call() throws Exception { } } + @Command(name = "generate-password", description = "Generates a hashed web-console password") + public static class GeneratePasswordCommand extends BrooklynCommandCollectingArgs { + + @Option(name = { "--user" }, title = "username", required = true) + public String user; + + @Override + public Void call() throws Exception { + System.out.println(BANNER); + System.out.println("Version: " + BrooklynVersion.get()); + System.out.println("Website: http://brooklyn.incubator.apache.org"); + System.out.println("Source: https://github.com/apache/incubator-brooklyn"); + System.out.println(); + System.out.println("Copyright 2011-2014 The Apache Software Foundation."); + System.out.println("Licensed under the Apache 2.0 License"); + System.out.println(); + + Console console = System.console(); + if (console == null) { + System.err.println("No console; cannot get password securely from standard input; aborting"); --- End diff -- Missing return. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---