API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create

This commit is contained in:
2023-10-09 14:01:34 +02:00
parent 9c74c4d661
commit b49433958b
14 changed files with 157 additions and 52 deletions

View File

@@ -0,0 +1,16 @@
# !/usr/bin/env python3
import argparse
from .create import register_create_parser
# takes a (sub)parser and configures it
def register_parser(parser: argparse.ArgumentParser) -> None:
subparser = parser.add_subparsers(
title="command",
description="the command to run",
help="the command to run",
required=True,
)
update_parser = subparser.add_parser("create", help="Create a clan flake")
register_create_parser(update_parser)