diff options
author | xengineering <me@xengineering.eu> | 2021-09-03 11:04:48 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2021-09-03 11:04:48 +0200 |
commit | f42af91a19d16f36d2a7ea2e8622252cf7d211b0 (patch) | |
tree | 2731faca506f4f9f71eb36434c4b90c498092a23 /src | |
parent | 2f74c0f91da0a5aefce7715213935eee0069c738 (diff) | |
download | xbackup-f42af91a19d16f36d2a7ea2e8622252cf7d211b0.tar xbackup-f42af91a19d16f36d2a7ea2e8622252cf7d211b0.tar.zst xbackup-f42af91a19d16f36d2a7ea2e8622252cf7d211b0.zip |
Restructure Code
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() |