func Version() (string, error) {
	if version != "" {
		return version, nil
	}
	desc, err := git("describe --tags --dirty")
	if err != nil {
		return "", err
	}
	parts := strings.Split(desc, "-")
	version = strings.Replace(parts[0], "v", "", 1)
	return version, nil
}
Version extracts the current version of grafton and return it.
THe version is cached for future uses.
package scripts
import (
	"fmt"
	"strings"
	"github.com/magefile/mage/mg"
	"github.com/manifoldco/grafton/scripts/grimoire/cast"
)
var version = ""
var git = cast.PrepShOutput("git")