2026-02-21 21:45:58 +00:00
|
|
|
// Package docs provides documentation management commands.
|
|
|
|
|
package docs
|
|
|
|
|
|
|
|
|
|
import (
|
2026-02-22 23:27:33 +00:00
|
|
|
"forge.lthn.ai/core/cli/pkg/cli"
|
2026-03-06 09:09:07 +00:00
|
|
|
"forge.lthn.ai/core/go-i18n"
|
2026-02-21 21:45:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
docsFileStyle = cli.InfoStyle
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var docsCmd = &cli.Command{
|
2026-03-17 02:21:52 +00:00
|
|
|
Use: "docs",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func setDocsI18n() {
|
|
|
|
|
docsCmd.Short = i18n.T("cmd.docs.short")
|
|
|
|
|
docsCmd.Long = i18n.T("cmd.docs.long")
|
|
|
|
|
docsListCmd.Short = i18n.T("cmd.docs.list.short")
|
|
|
|
|
docsListCmd.Long = i18n.T("cmd.docs.list.long")
|
|
|
|
|
docsSyncCmd.Short = i18n.T("cmd.docs.sync.short")
|
|
|
|
|
docsSyncCmd.Long = i18n.T("cmd.docs.sync.long")
|
2026-02-21 21:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
docsCmd.AddCommand(docsSyncCmd)
|
|
|
|
|
docsCmd.AddCommand(docsListCmd)
|
|
|
|
|
}
|