cli/cmd/doctor/cmd_commands.go
Snider 7303ba6f23
Some checks failed
Deploy / build (push) Failing after 4s
Security Scan / security (push) Successful in 18s
refactor: register commands through Core framework lifecycle
Replace init() + cli.RegisterCommands() with cli.WithCommands() passed
to cli.Main(). Commands now register as framework services and receive
the root command during OnStartup — no global state, no blank imports.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 22:08:01 +00:00

18 lines
623 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 "github.com/spf13/cobra"
// AddDoctorCommands registers the 'doctor' command and all subcommands.
func AddDoctorCommands(root *cobra.Command) {
root.AddCommand(doctorCmd)
}