diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts/xbackup | 7 | ||||
-rw-r--r-- | src/xbackup/script.py | 15 |
2 files changed, 17 insertions, 5 deletions
diff --git a/src/scripts/xbackup b/src/scripts/xbackup index 0155203..69246ea 100644 --- a/src/scripts/xbackup +++ b/src/scripts/xbackup @@ -8,16 +8,13 @@ Have a look at https://gitea.xengineering.eu/xengineering/xbackup for details. """ -import argparse - -import xbackup +from xbackup import script def main(): """Main Function of this Script""" - parser = argparse.ArgumentParser() - parser.parse_args() + script.run() if __name__ == "__main__": diff --git a/src/xbackup/script.py b/src/xbackup/script.py new file mode 100644 index 0000000..198b6b3 --- /dev/null +++ b/src/xbackup/script.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 +# vim: shiftwidth=4 tabstop=4 expandtab + + +"""Module for the Script Functionality of xbackup""" + + +import argparse + + +def run(): + """runs xbackup script functionality""" + + parser = argparse.ArgumentParser() + parser.parse_args() |