go-devops/cmd/docs/cmd_commands.go
Snider 0f50f98a95 fix: defer i18n.T() for package-level command vars
Package-level var declarations run at import time, before i18n is
initialised. Move Short/Long assignment to AddCommands functions
which run after Core startup.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 02:21:52 +00:00

24 lines
701 B
Go

// Package docs provides documentation management commands for multi-repo workspaces.
//
// Commands:
// - list: Scan repos for README.md, CLAUDE.md, CHANGELOG.md, docs/
// - sync: Copy docs/ files from all repos to core-php/docs/packages/
//
// Works with repos.yaml to discover repositories and sync documentation
// to a central location for unified documentation builds.
package docs
import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-devops/locales"
)
func init() {
cli.RegisterCommands(AddDocsCommands, locales.FS)
}
// AddDocsCommands registers the 'docs' command and all subcommands.
func AddDocsCommands(root *cli.Command) {
setDocsI18n()
root.AddCommand(docsCmd)
}