Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-291-aria-cli-ascii-art [created] 41910be5f
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/41910be5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/41910be5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/41910be5 Branch: refs/heads/ARIA-291-aria-cli-ascii-art Commit: 41910be5fcaec4fb5d1af28be56bc4ee82f512ab Parents: 668ddcb Author: Ran Ziv <[email protected]> Authored: Sun Jun 25 17:04:43 2017 +0300 Committer: Ran Ziv <[email protected]> Committed: Sun Jun 25 17:04:43 2017 +0300 ---------------------------------------------------------------------- aria/cli/ascii_art.py | 26 ++++++++++++++++++++++++++ aria/cli/core/aria.py | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/41910be5/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..f1c7b4a --- /dev/null +++ b/aria/cli/ascii_art.py @@ -0,0 +1,26 @@ +# -*- 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""" + ââââââ âââââââ âââ ââââââ + âââââââââââââââââââââââââââ + âââââââââââââââââââââââââââ + âââââââââââââââââââââââââââ + âââ ââââââ âââââââââ âââ + âââ ââââââ âââââââââ âââ + +""" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/41910be5/aria/cli/core/aria.py ---------------------------------------------------------------------- diff --git a/aria/cli/core/aria.py b/aria/cli/core/aria.py index 331caca..b64425b 100644 --- a/aria/cli/core/aria.py +++ b/aria/cli/core/aria.py @@ -28,6 +28,7 @@ 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 @@ -97,7 +98,7 @@ def show_version(ctx, param, value): if not value: return - logger.info('{0} {1}'.format(aria_package_name, __version__)) + logger.info('{0}{1} {2}'.format(ARIA_ASCII_ART, aria_package_name, __version__)) ctx.exit()
