Add version command
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
3437df8676
commit
46e2d3166f
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