diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-15 15:11:35 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-15 15:11:35 +0900 |
commit | 7c6cf4682ef05782d8e126ea6b7d64a707c59015 (patch) | |
tree | ff15b23a362541b24f84a2f4f82a69dca3858277 /elivepatch_client/bin | |
parent | added requirement file for use with pip (diff) | |
download | elivepatch-7c6cf4682ef05782d8e126ea6b7d64a707c59015.tar.gz elivepatch-7c6cf4682ef05782d8e126ea6b7d64a707c59015.tar.bz2 elivepatch-7c6cf4682ef05782d8e126ea6b7d64a707c59015.zip |
starting to write the argparser using cli python library
Diffstat (limited to 'elivepatch_client/bin')
-rw-r--r-- | elivepatch_client/bin/elivepatch | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/elivepatch_client/bin/elivepatch b/elivepatch_client/bin/elivepatch index 4336564..f56fff8 100644 --- a/elivepatch_client/bin/elivepatch +++ b/elivepatch_client/bin/elivepatch @@ -20,7 +20,9 @@ __version__ = "0.0.1" # #------------------------------------------------------------------------------- -from elivepatch_client.client import checkers +from elivepatch_client.client.argsparser import ArgsParser +from elivepatch_client.client.cli import Main +import os #=============================================================================== # @@ -28,9 +30,21 @@ from elivepatch_client.client import checkers # #------------------------------------------------------------------------------- -Kernel = checkers.Kernel() -Kernel.get_version() -cve = checkers.CVE() -cve.repo_dir = "/home/alicef/IdeaProjects/test12345" -cve.git_url = "https://github.com/nluedtke/linux_kernel_cves" -cve.download()
\ No newline at end of file +# Kernel = checkers.Kernel() +# Kernel.get_version() +# cve = checkers.CVE() +# cve.repo_dir = "/home/alicef/IdeaProjects/test12345" +# cve.git_url = "https://github.com/nluedtke/linux_kernel_cves" +# cve.download() + +root = None +try: + root = os.environ['ROOT'] +except KeyError: + pass + +main = Main(ArgsParser()) +try: + main() +except KeyboardInterrupt: + print('Interrupt received, exiting...')
\ No newline at end of file |