This repository has been archived on 2026-09-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
archmgr/commands/init.py
T

15 lines
356 B
Python

import os
import commands.util.git as git
def init(force: bool = False):
dir = os.getcwd()
if force:
[os.remove(dir) for dir in os.listdir(dir)]
git.init(dir)
os.mkdir(dir + "/config")
os.mkdir(dir + "/etc")
with open(dir + "/config.yaml") as file:
file.write("")
print("Initialized a new archmgr repository")