Improve kayobe --version output

This was hardcoded to 0.1. This change will report the full version
of the package including suffixes indicating VCS status.

Change-Id: I43b92e4d5b2aee22d7c6282f81701e5f83912f50
Story: 2004663
Task: 28630
This commit is contained in:
Will Szumski 2018-12-21 09:39:53 +00:00
parent 62aa5d015f
commit 9d894ff77c
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,
)