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-09 10:25:45 +00:00
|
|
|
import repository
|
2021-10-09 17:46:11 +00:00
|
|
|
import synchronization
|
2021-10-09 10:25:45 +00:00
|
|
|
|
|
|
|
|
2021-10-09 17:46:11 +00:00
|
|
|
def build(args):
|
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-09 17:46:11 +00:00
|
|
|
def check(args):
|
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-09 17:46:11 +00:00
|
|
|
def info(args):
|
|
|
|
print(repository.Repository(args))
|
2021-10-09 10:25:45 +00:00
|
|
|
|
|
|
|
|
2021-10-09 17:46:11 +00:00
|
|
|
def sync(args):
|
|
|
|
sync = synchronization.Synchronization(args)
|
|
|
|
print(sync)
|
2021-10-10 11:45:02 +00:00
|
|
|
sync.run()
|
2021-10-08 21:31:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
args = arguments.parse()
|
2021-10-09 17:46:11 +00:00
|
|
|
function = getattr(sys.modules[__name__], args[arguments.ACTION])
|
|
|
|
function(args)
|
2021-10-08 21:31:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|