Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
ARIA-291 Add ASCII art in ARIA CLI version command
  • Loading branch information
Ran Ziv committed Jun 25, 2017
1 parent 668ddcb commit 807db3086671959ef12fe539c3215fbbaa0286f8
Showing 2 changed files with 26 additions and 2 deletions.
@@ -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"""
█████╗ ██████╗ ██╗ █████╗
██╔══██╗██╔══██╗██║██╔══██╗
███████║██████╔╝██║███████║
██╔══██║██╔══██╗██║██╔══██║
██║ ██║██║ ██║██║██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝"""
@@ -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


@@ -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()


0 comments on commit 807db30

Please sign in to comment.