git-lfs/commands/command_version.go
brian m. carlson 087db1de70
Set package version to v3
Since we're about to do a v3.0.0 release, let's bump the version to v3.

Make this change automatically with the following command to avoid any
missed items:

  git grep -l github.com/git-lfs/git-lfs/v2 | \
  xargs sed -i -e 's!github.com/git-lfs/git-lfs/v2!github.com/git-lfs/git-lfs/v3!g'
2021-09-02 20:41:08 +00:00

26 lines
467 B
Go

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