store: Major Domo CLI modular refactor with 6 new command modules
This commit is contained in:
parent
ddfd6c0068
commit
03feb109c8
@ -0,0 +1,12 @@
|
||||
---
|
||||
id: de738797-b12a-4d8e-9402-c58116e1ba02
|
||||
type: solution
|
||||
title: "Major Domo CLI modular refactor with 6 new command modules"
|
||||
tags: [major-domo, cli, architecture, refactoring]
|
||||
importance: 0.8
|
||||
confidence: 0.8
|
||||
created: "2026-02-16T17:20:37.681799+00:00"
|
||||
updated: "2026-02-16T17:20:37.681799+00:00"
|
||||
---
|
||||
|
||||
Refactored monolithic cli.py into modular architecture. Extracted shared utilities into cli_common.py (State, console, output helpers). Created 6 new CLI modules: cli_transactions.py (list + simulate compliance checker), cli_injuries.py (list with team/active filters), cli_stats.py (batting/pitching leaderboards), cli_results.py (game results), cli_schedule.py (game schedules). Each module exports a typer.Typer sub-app that gets mounted in main cli.py. Key composite command: 'transactions simulate TEAM moves' validates roster count=26 and sWAR<=salary_cap without making changes. Also fixed team get to show salary_cap in formatted output. Updated SKILL.md with complete CLI docs including flag ordering warning (--env/--json are top-level flags before subcommand), transaction compliance workflow, and all new command examples. Results/schedules API tables are empty - endpoints work but no data loaded yet.
|
||||
Loading…
Reference in New Issue
Block a user