go-devops/cmd/deploy/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

16 lines
330 B
Go

package deploy
import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-devops/locales"
)
func init() {
cli.RegisterCommands(AddDeployCommands, locales.FS)
}
// AddDeployCommands registers the 'deploy' command and all subcommands.
func AddDeployCommands(root *cli.Command) {
setDeployI18n()
root.AddCommand(Cmd)
}