2026-01-29 18:27:33 +00:00
|
|
|
// Package php provides Laravel/PHP development and deployment commands.
|
|
|
|
|
//
|
|
|
|
|
// Development Commands:
|
|
|
|
|
// - dev: Start Laravel environment (FrankenPHP, Vite, Horizon, Reverb, Redis)
|
|
|
|
|
// - logs: Stream unified service logs
|
|
|
|
|
// - stop: Stop all running services
|
|
|
|
|
// - status: Show service status
|
|
|
|
|
// - ssl: Setup SSL certificates with mkcert
|
|
|
|
|
//
|
|
|
|
|
// Build Commands:
|
|
|
|
|
// - build: Build Docker or LinuxKit image
|
|
|
|
|
// - serve: Run production container
|
|
|
|
|
// - shell: Open shell in running container
|
|
|
|
|
//
|
|
|
|
|
// Code Quality:
|
|
|
|
|
// - test: Run PHPUnit/Pest tests
|
|
|
|
|
// - fmt: Format code with Laravel Pint
|
|
|
|
|
// - analyse: Run PHPStan/Larastan static analysis
|
|
|
|
|
//
|
|
|
|
|
// Package Management:
|
|
|
|
|
// - packages link/unlink/update/list: Manage local Composer packages
|
|
|
|
|
//
|
|
|
|
|
// Deployment (Coolify):
|
|
|
|
|
// - deploy: Deploy to Coolify
|
|
|
|
|
// - deploy:status: Check deployment status
|
|
|
|
|
// - deploy:rollback: Rollback deployment
|
|
|
|
|
// - deploy:list: List recent deployments
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
package php
|
|
|
|
|
|
|
|
|
|
import "github.com/leaanthony/clir"
|
|
|
|
|
|
|
|
|
|
// AddCommands registers the 'php' command and all subcommands.
|
|
|
|
|
func AddCommands(app *clir.Cli) {
|
|
|
|
|
AddPHPCommands(app)
|
|
|
|
|
}
|