This commit is contained in:
parent
3437df8676
commit
8ac7d4e94b
10
main.go
10
main.go
@ -128,6 +128,11 @@ func main() {
|
|||||||
Aliases: []string{"ref"},
|
Aliases: []string{"ref"},
|
||||||
Action: refreshCmd,
|
Action: refreshCmd,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Usage: "Display the current LURE version and exit",
|
||||||
|
Action: displayVersion,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,3 +141,8 @@ func main() {
|
|||||||
log.Error("Error while running app").Err(err).Send()
|
log.Error("Error while running app").Err(err).Send()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func displayVersion(c *cli.Context) error {
|
||||||
|
print(version)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user