cli/cmd/doctor/cmd_commands.go
Claude dcde802ea2
Some checks failed
Security Scan / Secret Detection (push) Successful in 15s
Security Scan / Go Vulnerability Check (push) Failing after 38s
Security Scan / Dependency & Config Scan (push) Successful in 21s
refactor: update imports from core/go/pkg/cli to core/cli/pkg/cli
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 20:06:55 +00:00

25 lines
720 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/cli/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)
}