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>
16 lines
330 B
Go
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)
|
|
}
|