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:
parent
62aa5d015f
commit
9d894ff77c
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user