Create new .ugit directory
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from . import data
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -19,4 +22,5 @@ def parse_args():
|
|||||||
|
|
||||||
|
|
||||||
def init(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
7
ugit/data.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
GIT_DIR = ".ugit"
|
||||||
|
|
||||||
|
|
||||||
|
def init():
|
||||||
|
Path.mkdir(GIT_DIR)
|
||||||
Reference in New Issue
Block a user