Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Commit

Permalink
ARIA-291 Add ASCII art in ARIA CLI version command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ran Ziv committed Jun 25, 2017
1 parent 668ddcb commit 807db30
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions aria/cli/ascii_art.py
Original file line number Diff line number Diff line change
@@ -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"""
█████╗ ██████╗ ██╗ █████╗
██╔══██╗██╔══██╗██║██╔══██╗
███████║██████╔╝██║███████║
██╔══██║██╔══██╗██║██╔══██║
██║ ██║██║ ██║██║██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝"""
4 changes: 2 additions & 2 deletions aria/cli/core/aria.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
)
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


Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit 807db30

Please sign in to comment.