diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-20 03:19:21 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-20 03:19:21 +0900 |
commit | 0b71f090a2c4d479414fb0ed2b4ffb7e1f6d86fa (patch) | |
tree | 0211370bdcd389fc7bad3895ccce68f623a0c0ae /elivepatch_client | |
parent | added argument dispatcher (diff) | |
download | elivepatch-0b71f090a2c4d479414fb0ed2b4ffb7e1f6d86fa.tar.gz elivepatch-0b71f090a2c4d479414fb0ed2b4ffb7e1f6d86fa.tar.bz2 elivepatch-0b71f090a2c4d479414fb0ed2b4ffb7e1f6d86fa.zip |
reformatted dispatcher and commented out not needed function
Diffstat (limited to 'elivepatch_client')
-rw-r--r-- | elivepatch_client/client/cli.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/elivepatch_client/client/cli.py b/elivepatch_client/client/cli.py index cb552fc..62129e7 100644 --- a/elivepatch_client/client/cli.py +++ b/elivepatch_client/client/cli.py @@ -34,23 +34,23 @@ class Main(object): def __init__(self, argparser): config = argparser.get_arg() self.dispatch(config) - print(config) - print(Kernel().get_version()) - self.url = config.url - self.send_config() + # print(config) + # print(Kernel().get_version()) + # self.url = config.url + # self.send_config() def dispatch(self, config): - if config == 'config': + if config.config: print('getting kernel config') Kernel() - elif config == 'cve': + elif config.cve: print('working on cve') - elif config == 'url': + elif config.url: print('getting url') - elif config == 'debug': + elif config.debug: print('debug mode on') - elif config == 'version': + elif config.version: print('returning version') else: print('this is strange') |