package appversion

import (
	"github.com/tech/sendico/pkg/version"
	vf "github.com/tech/sendico/pkg/version/factory"
)

// Build information. Populated at build-time.
var (
	Version   string
	Revision  string
	Branch    string
	BuildUser string
	BuildDate string
)

func Create() version.Printer {
	info := version.Info{
		Program:   "Sendico Chain Gateway Service",
		Revision:  Revision,
		Branch:    Branch,
		BuildUser: BuildUser,
		BuildDate: BuildDate,
		Version:   Version,
	}
	return vf.Create(&info)
}
