Create new .ugit directory

This commit is contained in:
David Doblas Jiménez 2024-02-10 19:09:11 +01:00
parent 55b2c17913
commit 1f7354666b
2 changed files with 12 additions and 1 deletions

View File

@ -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}")

7
ugit/data.py Normal file
View File

@ -0,0 +1,7 @@
from pathlib import Path
GIT_DIR = ".ugit"
def init():
Path.mkdir(GIT_DIR)