-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.py
More file actions
executable file
·47 lines (36 loc) · 1004 Bytes
/
project.py
File metadata and controls
executable file
·47 lines (36 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Git Worktree Infrastructure """
import os
import sys
## Importing: load_script
from core import core_module
## Importing: Application Classes
from app import mod_project as worktree
def main(
env_config: dict = None,
trg_path: str = os.getcwd()
) -> None:
"""
Objective: Manage Worktree Infrastructure
Parameters: None
Returns: True (bool)
"""
## Initializing Application
worktree.main(
env_config = env_config,
trg_path = trg_path
)
return True
if __name__ == "__main__":
if sys.argv[1] in [ '--git-repo' ]:
origin_path = sys.argv[2]
else:
origin_path = os.getcwd()
# print( "\nOrigin Path:", origin_path )
## Change context -> local
# print( "execute:", __file__ )
_ = core_module.load_script( os.path.basename( __file__ ) )
parser, args, rouge_args, config = _
## Run main function
main( config, origin_path )