1 2 3 4 5 6 7 8 9 10 11 12 13
| package cmd
import "github.com/muesli/coral"
func versionF() error { println(_buildInfo.Version) //nolint:forbidigo return nil }
func versionCmd() *coral.Command { f := func(_ *coral.Command, _ []string) error { return versionF() } return &coral.Command{Use: "version", Short: "Displays the version and exits", RunE: f} }
|