machines api: always create empty settings.json
This commit is contained in:
parent
a0d1b09b1d
commit
2a11b1c5d1
@ -6,6 +6,9 @@ from .folders import machine_folder
|
||||
def create_machine(name: str) -> None:
|
||||
folder = machine_folder(name)
|
||||
folder.mkdir(parents=True, exist_ok=True)
|
||||
# create empty settings.json file inside the folder
|
||||
with open(folder / "settings.json", "w") as f:
|
||||
f.write("{}")
|
||||
|
||||
|
||||
def create_command(args: argparse.Namespace) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user