How ocira-mike/trongate-cli works
Tronggate CLI is a PHP command-line toolkit for working with Trongate projects. The main workflow starts at the trongate entry script, routes a command through the CLI, and performs a project task: inspect or check the project, generate CRUD from a database schema, install a framework edition, or start a development server. Separate commands provide help and a guided learning path. The graph includes shared console and file-generation layers. Source excerpts are partial; uncertain entry-script and installer-service connections are omitted.
Main entry points: Cli.php Command router · Create.php CRUD generator · Serve.php Development server · FileGenerator.php Safe file writer
Components 19
CLI routing
- CLI entry script
trongate - Command router
cli/commands/Cli.php - Command help
cli/commands/Help.php - CLI logo
cli/commands/Logo.php
Project workflows
- Project checks
cli/commands/Check.php - Project info
cli/commands/Info.php - Learning guide
cli/commands/Learn.php - CRUD generator
cli/commands/Create.php - Install command
cli/commands/Install.php - Installer engine
cli/Support/Installer/Installer.php - Setup completion
cli/Support/Installer/complete.php - Development server
cli/commands/Serve.php
Shared support
- Safe file writer
cli/Support/FileGenerator.php - Console output
cli/Support/Console.php - System helpers
cli/Support/System.php
Other components
- Developer
- Project files
- Project database
- PHP built-in server
Connections 19
- Developer → CLI entry script: runs command
README.md - CLI entry script → Command router: routes commands
- Command router → Command help: checks help
cli/commands/Cli.php - Command router → Install command: dispatches install
cli/commands/Cli.php - Command router → Development server: dispatches serve
cli/commands/Cli.php - Command router → Project info: dispatches info
cli/commands/Cli.php - Command router → Learning guide: dispatches learn
cli/commands/Cli.php - Command router → CRUD generator: dispatches create
cli/commands/Cli.php - Command router → Project checks: dispatches check
cli/commands/Cli.php - Command router → CLI logo: renders logo
cli/commands/Cli.php - Install command → Installer engine: runs installer
cli/commands/Install.php - CRUD generator → Safe file writer: writes generated files
cli/commands/Create.php - CRUD generator → Project database: reads table schema
README.md - Safe file writer → Project files: writes module files
README.md - Installer engine → Project files: installs framework
- Development server → PHP built-in server: starts server
cli/commands/Serve.php - Development server → System helpers: gets worker count
cli/commands/Serve.php - Console output → System helpers: checks color support
cli/Support/Console.php - Safe file writer → Console output: reports writes
cli/Support/FileGenerator.php