2026-02-21 21:45:58 +00:00
|
|
|
// 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
|
|
|
|
|
|
2026-03-17 02:21:52 +00:00
|
|
|
import (
|
|
|
|
|
"forge.lthn.ai/core/cli/pkg/cli"
|
2026-03-17 08:18:32 +00:00
|
|
|
|
|
|
|
|
_ "forge.lthn.ai/core/go-devops/locales"
|
2026-03-17 02:21:52 +00:00
|
|
|
)
|
2026-02-21 21:45:58 +00:00
|
|
|
|
|
|
|
|
func init() {
|
2026-03-17 08:18:32 +00:00
|
|
|
cli.RegisterCommands(AddDocsCommands)
|
2026-02-21 21:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AddDocsCommands registers the 'docs' command and all subcommands.
|
|
|
|
|
func AddDocsCommands(root *cli.Command) {
|
2026-03-17 02:21:52 +00:00
|
|
|
setDocsI18n()
|
2026-02-21 21:45:58 +00:00
|
|
|
root.AddCommand(docsCmd)
|
|
|
|
|
}
|