diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-20 05:16:13 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-20 05:16:13 +0900 |
commit | 907a414c7393ffe96a6e0d7e8bd80a0320b9ca24 (patch) | |
tree | a0da8f304cf5d5ba310a2589bbe1217ec3b5058a /elivepatch_client/client/cli.py | |
parent | Refactored dispatcher (diff) | |
download | elivepatch-907a414c7393ffe96a6e0d7e8bd80a0320b9ca24.tar.gz elivepatch-907a414c7393ffe96a6e0d7e8bd80a0320b9ca24.tar.bz2 elivepatch-907a414c7393ffe96a6e0d7e8bd80a0320b9ca24.zip |
added kernel get version and elivepatch version
Diffstat (limited to 'elivepatch_client/client/cli.py')
-rw-r--r-- | elivepatch_client/client/cli.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elivepatch_client/client/cli.py b/elivepatch_client/client/cli.py index 01da108..8aebfde 100644 --- a/elivepatch_client/client/cli.py +++ b/elivepatch_client/client/cli.py @@ -19,6 +19,7 @@ import os, sys from elivepatch_client.client.checkers import CVE from elivepatch_client.client.checkers import Kernel from elivepatch_client.client.restful import ManaGer +from elivepatch_client.client.version import VERSION if sys.hexversion >= 0x30200f0: @@ -47,6 +48,9 @@ class Main(object): Kernel() elif config.patch: print('working with patch') + Kernel().get_version() + elif config.version: + print('elivepatch version: '+str(VERSION)) else: print('--help for help\n\ you need at list --patch or --cve') |