cmm: splitted commands into separate modules (and more cleanup)

This commit is contained in:
2023-09-08 13:31:01 +02:00
committed by Oleksandr Kozachuk
parent 21d39c6c66
commit 61e710a4b1
8 changed files with 196 additions and 25 deletions
+11
View File
@@ -0,0 +1,11 @@
import argparse
from pathlib import Path
from ..configuration import Config
def config_cmd(args: argparse.Namespace) -> None:
"""
Handler for the 'config' command.
"""
if args.create:
Config.create_default(Path(args.create))