Create new .ugit directory
This commit is contained in:
parent
55b2c17913
commit
1f7354666b
|
@ -1,4 +1,7 @@
|
|||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
from . import data
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -19,4 +22,5 @@ def parse_args():
|
|||
|
||||
|
||||
def init(args):
|
||||
print("Hello, World!")
|
||||
data.init()
|
||||
print(f"Initialized empty ugit repository in {Path.cwd()}/{data.GIT_DIR}")
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
from pathlib import Path
|
||||
|
||||
GIT_DIR = ".ugit"
|
||||
|
||||
|
||||
def init():
|
||||
Path.mkdir(GIT_DIR)
|
Loading…
Reference in New Issue