15 lines
486 B
Python
15 lines
486 B
Python
"""cf init — создать пустую модель."""
|
|
|
|
from domain import FinancialModel
|
|
from infrastructure.cli.paths import AppPaths
|
|
from infrastructure.cli.services import console, save_model
|
|
from infrastructure.i18n import t
|
|
|
|
|
|
def init() -> None:
|
|
"""Создать пустую финансовую модель"""
|
|
model = FinancialModel()
|
|
model_path = AppPaths.from_env().model_path
|
|
save_model(model)
|
|
console.print(t("cmd.init.ok", path=str(model_path)))
|