Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 760C4200CB4 for ; Tue, 27 Jun 2017 16:05:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 74C17160BDC; Tue, 27 Jun 2017 14:05:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BA5B4160BC6 for ; Tue, 27 Jun 2017 16:05:56 +0200 (CEST) Received: (qmail 89638 invoked by uid 500); 27 Jun 2017 14:05:55 -0000 Mailing-List: contact commits-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list commits@ariatosca.incubator.apache.org Received: (qmail 89628 invoked by uid 99); 27 Jun 2017 14:05:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 14:05:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EDC67C07D8 for ; Tue, 27 Jun 2017 14:05:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.23 X-Spam-Level: X-Spam-Status: No, score=-4.23 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PGUu_pcxmvrb for ; Tue, 27 Jun 2017 14:05:53 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 611FE5FDE5 for ; Tue, 27 Jun 2017 14:05:53 +0000 (UTC) Received: (qmail 89556 invoked by uid 99); 27 Jun 2017 14:05:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 14:05:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AC6B8E080D; Tue, 27 Jun 2017 14:05:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: mxmrlv@apache.org To: commits@ariatosca.incubator.apache.org Date: Tue, 27 Jun 2017 14:05:54 -0000 Message-Id: <61bfd458f1b74b3d9c75ef67a30bbf14@git.apache.org> In-Reply-To: <2c49ca8f80034e6c9551b3afd9137af7@git.apache.org> References: <2c49ca8f80034e6c9551b3afd9137af7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/4] incubator-ariatosca git commit: ARIA-291 Add ASCII art in ARIA CLI version command archived-at: Tue, 27 Jun 2017 14:05:57 -0000 ARIA-291 Add ASCII art in ARIA CLI version command Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/807db308 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/807db308 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/807db308 Branch: refs/heads/ARIA-285-Cancel-execution-may-leave-running-processes Commit: 807db3086671959ef12fe539c3215fbbaa0286f8 Parents: 668ddcb Author: Ran Ziv Authored: Sun Jun 25 17:04:43 2017 +0300 Committer: Ran Ziv Committed: Sun Jun 25 17:32:45 2017 +0300 ---------------------------------------------------------------------- aria/cli/ascii_art.py | 24 ++++++++++++++++++++++++ aria/cli/core/aria.py | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/807db308/aria/cli/ascii_art.py ---------------------------------------------------------------------- diff --git a/aria/cli/ascii_art.py b/aria/cli/ascii_art.py new file mode 100644 index 0000000..8a8b79f --- /dev/null +++ b/aria/cli/ascii_art.py @@ -0,0 +1,24 @@ +# -*- coding: utf8 -*- +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +ARIA_ASCII_ART = r""" + █████╗ ██████╗ ██╗ █████╗ + ██╔══██╗██╔══██╗██║██╔══██╗ + ███████║██████╔╝██║███████║ + ██╔══██║██╔══██╗██║██╔══██║ + ██║ ██║██║ ██║██║██║ ██║ + ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝""" http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/807db308/aria/cli/core/aria.py ---------------------------------------------------------------------- diff --git a/aria/cli/core/aria.py b/aria/cli/core/aria.py index 331caca..e5b3eb2 100644 --- a/aria/cli/core/aria.py +++ b/aria/cli/core/aria.py @@ -28,9 +28,9 @@ from ..env import ( ) from .. import defaults from .. import helptexts +from ..ascii_art import ARIA_ASCII_ART from ..inputs import inputs_to_dict from ... import __version__ -from ... import aria_package_name from ...utils.exceptions import get_exception_as_string @@ -97,7 +97,7 @@ def show_version(ctx, param, value): if not value: return - logger.info('{0} {1}'.format(aria_package_name, __version__)) + logger.info('{0} v{1}'.format(ARIA_ASCII_ART, __version__)) ctx.exit()