cli-module
Installation
SKILL.md
CliModule - Custom CLI Commands
CliModule enables custom CLI commands with full dependency injection and Typer integration.
Quick Start
from myfy.core import Application
from myfy.commands import CliModule, cli
@cli.command()
async def seed_users(user_service: UserService, count: int = 10):
'''Seed the database with test users.'''
for i in range(count):
await user_service.create(f"user{i}@example.com")
print(f"Created {count} users")
app = Application()
app.add_module(CliModule())