How toglefritz/splendid_cli works
Splendid CLI is a Flutter development toolkit exposed through a command-line interface, MCP tools, a GUI example, and IDE extensions. Its main workflow is a developer invoking a command, which dispatches project or source-maintenance work and produces generated files, project changes, or analysis results. The README documents the major capabilities; sampled implementation excerpts are limited, so links between command families and their services are shown only where their roles are supported by the tree and documentation.
Main entry points: commands Command handlers · splendid_cli.dart CLI entry · format_all_command.dart Code formatting · brick_loader.dart Brick loading
Components 32
Entry points
- CLI entry
bin/splendid_cli.dart - CLI API
lib/splendid_cli.dart - Command handlers
lib/src/commands
Project creation
- Create projects
lib/src/commands/create_command.dart - Project service
lib/src/services/project_service.dart - Project setup
lib/src/commands/setup_command.dart - Screen generation
lib/src/commands/screen_command.dart - Screen service
lib/src/services/screen_service.dart - Brick loading
lib/src/services/brick_loader.dart - Brick cache
lib/src/commands/cache_command.dart - Test generation
lib/src/commands/test_command.dart - Test service
lib/src/services/test_service.dart
Source maintenance
- Code formatting
lib/src/commands/format_all_command.dart - Comment formatters
lib/src/services/comment_formatter_service.dart - Dartdoc formatter
lib/src/services/dartdoc_formatter_service.dart - Sort localization
lib/src/services/l10n_sorter_service.dart - Sort enums
lib/src/services/enum_sorter_service.dart - Unused-code scans
lib/src/services/unused_classes_service.dart - Unused localization
lib/src/services/unused_l10n_service.dart - Deep clean
lib/src/commands/deep_clean_command.dart
Developer integrations
- MCP server
lib/src/mcp/mcp_server.dart - MCP tool registry
lib/src/mcp/mcp_tool_registry.dart - GUI dashboard
example/gui_dashboard/lib - VS Code extension
plugins/vscode-plugin/src/extension.ts - IntelliJ actions
plugins/intellij-plugin/src/main/kotlin/com/splendidcli/intellij/actions - CLI executor
plugins/intellij-plugin/src/main/kotlin/com/splendidcli/intellij/services/CliExecutorService.kt
Other components
- Developer
- Mason bricks
- Flutter tooling
- Project files
- MCP client
- IDE user
Connections 32
- Developer → CLI entry: invokes
- CLI entry → CLI API: starts
- CLI API → Command handlers: dispatches
- Command handlers → Create projects: dispatches
- Command handlers → Project setup: dispatches
- Command handlers → Screen generation: dispatches
- Command handlers → Test generation: dispatches
- Command handlers → Code formatting: dispatches
- Create projects → Project service: creates project
- Project service → Flutter tooling: runs tooling
- Screen generation → Screen service: generates screen
- Screen service → Brick loading: loads templates
- Brick loading → Mason bricks: loads bricks
- Brick loading → Project files: reads cache
- Brick cache → Brick loading: manages cache
- Test generation → Test service: generates tests
- Code formatting → Comment formatters: formats comments
- Code formatting → Dartdoc formatter: formats Dartdoc
- Code formatting → Project files: updates files
- Command handlers → Sort localization: dispatches
- Command handlers → Sort enums: dispatches
- Command handlers → Unused-code scans: dispatches
- Command handlers → Unused localization: dispatches
- Command handlers → Deep clean: dispatches
- MCP client → MCP server: requests tools
- MCP server → MCP tool registry: resolves tools
- GUI dashboard → CLI entry: runs commands
- IDE user → VS Code extension: invokes actions
- VS Code extension → CLI entry: executes commands
- IDE user → IntelliJ actions: invokes actions
- IntelliJ actions → CLI executor: executes through
- CLI executor → CLI entry: runs commands