Add to shared package: - Git status styles (dirty/ahead/behind/clean/conflict) - CheckMark() helper for presence indicators (✓/—) - Label() helper for key-value labels - CheckResult() helper for environment check output Update packages to use new shared utilities: - cmd/dev: use shared git styles for table cells - cmd/docs: use CheckMark() and Label() helpers - cmd/doctor: use CheckResult() and Success()/Error() helpers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
826 B
Go
32 lines
826 B
Go
// Package docs provides documentation management commands.
|
|
package docs
|
|
|
|
import (
|
|
"github.com/host-uk/core/cmd/shared"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// Style and utility aliases from shared
|
|
var (
|
|
repoNameStyle = shared.RepoNameStyle
|
|
successStyle = shared.SuccessStyle
|
|
errorStyle = shared.ErrorStyle
|
|
dimStyle = shared.DimStyle
|
|
headerStyle = shared.HeaderStyle
|
|
confirm = shared.Confirm
|
|
docsFoundStyle = shared.SuccessStyle
|
|
docsMissingStyle = shared.DimStyle
|
|
docsFileStyle = shared.InfoStyle
|
|
)
|
|
|
|
var docsCmd = &cobra.Command{
|
|
Use: "docs",
|
|
Short: "Documentation management",
|
|
Long: `Manage documentation across all repos.
|
|
Scan for docs, check coverage, and sync to core-php/docs/packages/.`,
|
|
}
|
|
|
|
func init() {
|
|
docsCmd.AddCommand(docsSyncCmd)
|
|
docsCmd.AddCommand(docsListCmd)
|
|
}
|