feat(cli): Better organized CLI arg parsing

This commit is contained in:
2026-05-14 17:36:06 +02:00
parent e24eb647ca
commit 78eecfc81a
13 changed files with 109 additions and 46 deletions
+5 -3
View File
@@ -1,4 +1,4 @@
from typing import Literal
import argparse
from config.dtype import ArchMgrConfig
from templates import ArchMgrTemplates
@@ -6,7 +6,9 @@ from templates import ArchMgrTemplates
# TODO: Templates data
def show(
config: ArchMgrConfig, spec: ArchMgrTemplates, kind: Literal["bundle"], arg: str
config: ArchMgrConfig,
spec: ArchMgrTemplates,
args: argparse.Namespace,
):
"""Show details / information about things like contents pkg bundles
@@ -16,4 +18,4 @@ def show(
kind: The type of information to get
arg: The arg for the command (e.g. bundle name)
"""
pass
print(args)