Add version command
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Arsen Musayelyan 2022-11-22 12:54:03 -08:00
parent 3437df8676
commit 46e2d3166f
1 changed files with 10 additions and 0 deletions

10
main.go
View File

@ -128,6 +128,11 @@ func main() {
Aliases: []string{"ref"},
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()
}
}
func displayVersion(c *cli.Context) error {
print(version)
return nil
}