Debian Codegraph @

commands/command_version.go

raw symbols SCIP
1 package commands
2
3 import (
4 "github.com/git-lfs/git-lfs/v3/lfshttp"
5 "github.com/spf13/cobra"
6 )
7
8 var (
9 lovesComics bool
10 )
11
12 func versionCommand(cmd *cobra.Command, args []string) {
13 Print(lfshttp.UserAgent)
14
15 if lovesComics {
16 Print("Nothing may see Gah Lak Tus and survive!")
17 }
18 }
19
20 func init() {
21 RegisterCommand("version", versionCommand, func(cmd *cobra.Command) {
22 cmd.PreRun = nil
23 cmd.Flags().BoolVarP(&lovesComics, "comics", "c", false, "easter egg")
24 })
25 }