Move module identity to our own Forgejo instance. All import paths updated across 434 Go files, sub-module go.mod files, and go.work. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
553 B
Go
25 lines
553 B
Go
package ci
|
|
|
|
import (
|
|
"os"
|
|
|
|
"forge.lthn.ai/core/cli/pkg/cli"
|
|
"forge.lthn.ai/core/cli/pkg/i18n"
|
|
"forge.lthn.ai/core/cli/pkg/release"
|
|
)
|
|
|
|
// runCIReleaseVersion shows the determined version.
|
|
func runCIReleaseVersion() error {
|
|
projectDir, err := os.Getwd()
|
|
if err != nil {
|
|
return cli.WrapVerb(err, "get", "working directory")
|
|
}
|
|
|
|
version, err := release.DetermineVersion(projectDir)
|
|
if err != nil {
|
|
return cli.WrapVerb(err, "determine", "version")
|
|
}
|
|
|
|
cli.Print("%s %s\n", i18n.Label("version"), releaseValueStyle.Render(version))
|
|
return nil
|
|
}
|