File tree 1 file changed +16
-15
lines changed
1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 1
- import repoInfo ,filechange
2
- import gitcommands as git
1
+ import repoInfo
2
+ from filechange import ischanged
3
+ from colors import logcolors
4
+ import pyfiglet
5
+ import logger
6
+ from utils import initCommands
3
7
def init ():
4
8
info = repoInfo .checkinfoInDir ()
9
+ url , branch = info
10
+ logger .checkdata (url , branch )
5
11
if ('n' in info ):
6
- info .remove ('n' )
7
- git .init ()
8
- git .createReadme ()
9
- git .add (['.' ])
10
- git .commit (['README.md' ])
11
- git .setBranch (info [1 ])
12
- git .setremote (info [0 ])
13
- git .push (info [0 ] , info [1 ])
14
- print ('initial setup done :)' )
15
- filechange .ischanged (info [0 ] , info [1 ])
12
+ initCommands (info )
16
13
else :
17
- print ('Retrieving info from git directory' )
18
- filechange .ischanged (info [0 ] , info [1 ])
14
+ print (f'{ logcolors .BOLD } Retrieving info from git directory{ logcolors .ENDC } ' )
15
+ print (f'{ logcolors .CYAN } URL:{ logcolors .ENDC } { url } , { logcolors .CYAN } Branch:{ logcolors .ENDC } { branch } ' )
16
+ ischanged (url ,branch )
17
+
19
18
20
19
if __name__ == '__main__' :
21
- init ()
20
+ f = pyfiglet .figlet_format ('G - AUTO' , font = '5lineoblique' )
21
+ print (f"{ logcolors .BOLD } { f } { logcolors .ENDC } " )
22
+ init ()
You can’t perform that action at this time.
0 commit comments