예제 #1
0
파일: mel.go 프로젝트: chrismccluskey/mel
func init() {
	melInfo = &MelInfo{
		Version:    helpers.MelVersion(),
		CommitHash: CommitHash,
		BuildDate:  BuildDate,
	}
}
예제 #2
0
package commands

import (
	"fmt"
	"github.com/chrismccluskey/mel/helpers"
	"github.com/spf13/cobra"
)

var version = &cobra.Command{
	Use:   "version",
	Short: "Print Mel's version information",
	Long:  `Find out what version of mel is installed`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("Mel, the MEdia Librarian v%s\n", helpers.MelVersion())
	},
}