2022-03-20 02:53:50 +00:00
|
|
|
#!/usr/local/bin/python3
|
|
|
|
|
|
|
|
from argparse import ArgumentParser
|
2022-03-23 01:56:07 +00:00
|
|
|
from application_info import *
|
|
|
|
import json
|
2022-03-22 04:36:54 +00:00
|
|
|
import os
|
|
|
|
|
2022-03-20 02:53:50 +00:00
|
|
|
def main():
|
|
|
|
parser = ArgumentParser(prog='mynode-manage-apps')
|
|
|
|
action_choices = (
|
|
|
|
'init',
|
|
|
|
'createfolders',
|
|
|
|
)
|
|
|
|
parser.add_argument('action', help='action to manage mynode application', nargs='?', choices=action_choices)
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
if args.action == "createbasefolders":
|
2022-03-22 04:36:54 +00:00
|
|
|
print("createbasefolders - not needed?")
|
2022-03-20 02:53:50 +00:00
|
|
|
elif args.action == "init":
|
2022-03-23 01:56:07 +00:00
|
|
|
init_dynamic_apps()
|
2022-03-20 02:53:50 +00:00
|
|
|
else:
|
|
|
|
print("UNKNOWN BASE ACTION")
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|