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>
24 lines
701 B
Go
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)
|
|
}
|