Merge "Improve kayobe --version output"

This commit is contained in:
Zuul 2019-01-30 10:25:11 +00:00 committed by Gerrit Code Review
commit 65f41a4344
1 changed files with 5 additions and 1 deletions

View File

@ -12,18 +12,22 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import sys
from cliff.app import App
from cliff.commandmanager import CommandManager
from kayobe import version
class KayobeApp(App):
def __init__(self):
release_version = version.version_info.release_string()
super(KayobeApp, self).__init__(
description='Kayobe Command Line Interface (CLI)',
version='0.1',
version=release_version,
command_manager=CommandManager('kayobe.cli'),
deferred_help=True,
)