git-lfs/commands/command_version.go
2015-09-17 16:08:28 -06:00

29 lines
513 B
Go

package commands
import (
"github.com/github/git-lfs/lfs"
"github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra"
)
var (
lovesComics bool
versionCmd = &cobra.Command{
Use: "version",
Run: versionCommand,
}
)
func versionCommand(cmd *cobra.Command, args []string) {
Print(lfs.UserAgent)
if lovesComics {
Print("Nothing may see Gah Lak Tus and survive!")
}
}
func init() {
versionCmd.Flags().BoolVarP(&lovesComics, "comics", "c", false, "easter egg")
RootCmd.AddCommand(versionCmd)
}