2021-10-09 10:29:37 +00:00
|
|
|
#! /usr/bin/env python3
|
2021-10-08 21:31:53 +00:00
|
|
|
|
2021-10-09 12:01:50 +00:00
|
|
|
import sys
|
|
|
|
|
2021-10-08 21:31:53 +00:00
|
|
|
import arguments
|
2021-10-10 12:44:22 +00:00
|
|
|
import local
|
2021-10-09 17:46:11 +00:00
|
|
|
import synchronization
|
2021-10-09 10:25:45 +00:00
|
|
|
|
|
|
|
|
2021-10-10 17:02:34 +00:00
|
|
|
def build():
|
2021-10-09 10:25:45 +00:00
|
|
|
# TODO identify
|
|
|
|
print('TODO identify')
|
|
|
|
# TODO extract
|
|
|
|
print('TODO extract')
|
|
|
|
# TODO apply
|
|
|
|
print('TODO apply')
|
|
|
|
# TODO archive
|
|
|
|
print('TODO archive')
|
|
|
|
|
|
|
|
|
2021-10-10 17:02:34 +00:00
|
|
|
def check():
|
2021-10-09 10:25:45 +00:00
|
|
|
# TODO prepare threads
|
|
|
|
print('TODO prepare threads')
|
|
|
|
# TODO run threads
|
|
|
|
print('TODO run threads')
|
|
|
|
# TODO watch threads
|
|
|
|
print('TODO watch threads')
|
|
|
|
|
|
|
|
|
2021-10-10 17:02:34 +00:00
|
|
|
def info():
|
|
|
|
print(local.Local())
|
2021-10-09 10:25:45 +00:00
|
|
|
|
|
|
|
|
2021-10-10 17:02:34 +00:00
|
|
|
def sync():
|
|
|
|
sync = synchronization.Synchronization()
|
2021-10-09 17:46:11 +00:00
|
|
|
print(sync)
|
2021-10-10 11:45:02 +00:00
|
|
|
sync.run()
|
2021-10-08 21:31:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2021-10-10 17:02:34 +00:00
|
|
|
getattr(sys.modules[__name__], arguments.action)()
|
2021-10-08 21:31:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|