use experimental flags everywhere

This commit is contained in:
Jörg Thalheim
2023-09-15 16:22:05 +02:00
parent 447d071ea3
commit a65413c98e
5 changed files with 58 additions and 52 deletions

View File

@@ -3,18 +3,22 @@ import argparse
import os
import subprocess
from .nix import nix_command
def create(args: argparse.Namespace) -> None:
os.makedirs(args.folder, exist_ok=True)
# TODO create clan template in flake
subprocess.run(
[
"nix",
"flake",
"init",
"-t",
"git+https://git.clan.lol/clan/clan-core#new-clan",
]
nix_command(
[
"flake",
"init",
"-t",
"git+https://git.clan.lol/clan/clan-core#new-clan",
]
),
check=True,
)
@@ -24,7 +28,7 @@ def register_parser(parser: argparse.ArgumentParser) -> None:
"-f",
"--folder",
help="the folder where the clan is defined, default to the current folder",
default=os.environ["PWD"],
default=os.getcwd(),
)
subparser = parser.add_subparsers(
title="command",