- Replaces lipgloss/fmt with cli.* functions - Adds unit tests for new cli components - Fixes all build errors Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
712 B
Go
31 lines
712 B
Go
// Package docs provides documentation management commands.
|
|
package docs
|
|
|
|
import (
|
|
"github.com/host-uk/core/pkg/cli"
|
|
"github.com/host-uk/core/pkg/i18n"
|
|
)
|
|
|
|
// Style and utility aliases from shared
|
|
var (
|
|
repoNameStyle = cli.RepoStyle
|
|
successStyle = cli.SuccessStyle
|
|
errorStyle = cli.ErrorStyle
|
|
dimStyle = cli.DimStyle
|
|
headerStyle = cli.HeaderStyle
|
|
confirm = cli.Confirm
|
|
docsFoundStyle = cli.SuccessStyle
|
|
docsMissingStyle = cli.DimStyle
|
|
docsFileStyle = cli.InfoStyle
|
|
)
|
|
|
|
var docsCmd = &cli.Command{
|
|
Use: "docs",
|
|
Short: i18n.T("cmd.docs.short"),
|
|
Long: i18n.T("cmd.docs.long"),
|
|
}
|
|
|
|
func init() {
|
|
docsCmd.AddCommand(docsSyncCmd)
|
|
docsCmd.AddCommand(docsListCmd)
|
|
}
|