- Remove internal/cmd/php/ (now core/php repo) - Remove internal/cmd/ci/ and internal/cmd/sdk/ (now core/ci repo) - Remove internal/variants/ build tag system entirely - Move all 30 remaining command packages from internal/cmd/ to cmd/ - Rewrite main.go with direct imports (no more variant selection) - Update all cross-references from internal/cmd/ to cmd/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
719 B
Go
25 lines
719 B
Go
// Package doctor provides environment validation commands.
|
|
//
|
|
// Checks for:
|
|
// - Required tools: git, gh, php, composer, node
|
|
// - Optional tools: pnpm, claude, docker
|
|
// - GitHub access: SSH keys and CLI authentication
|
|
// - Workspace: repos.yaml presence and clone status
|
|
//
|
|
// Run before 'core setup' to ensure your environment is ready.
|
|
// Provides platform-specific installation instructions for missing tools.
|
|
package doctor
|
|
|
|
import (
|
|
"forge.lthn.ai/core/go/pkg/cli"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
cli.RegisterCommands(AddDoctorCommands)
|
|
}
|
|
|
|
// AddDoctorCommands registers the 'doctor' command and all subcommands.
|
|
func AddDoctorCommands(root *cobra.Command) {
|
|
root.AddCommand(doctorCmd)
|
|
}
|