mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-11 13:07:13 +02:00
Set Opengist version from git tags (#261)
* Set Opengist version from git tags * Add volume for docker dev container
This commit is contained in:
@ -20,7 +20,7 @@ var CmdVersion = cli.Command{
|
||||
Name: "version",
|
||||
Usage: "Print the version of Opengist",
|
||||
Action: func(c *cli.Context) error {
|
||||
fmt.Println("Opengist v" + config.OpengistVersion)
|
||||
fmt.Println("Opengist " + config.OpengistVersion)
|
||||
return nil
|
||||
},
|
||||
}
|
||||
@ -57,7 +57,7 @@ func App() error {
|
||||
}
|
||||
|
||||
func Initialize(ctx *cli.Context) {
|
||||
fmt.Println("Opengist v" + config.OpengistVersion)
|
||||
fmt.Println("Opengist " + config.OpengistVersion)
|
||||
|
||||
if err := config.InitConfig(ctx.String("config"), os.Stdout); err != nil {
|
||||
panic(err)
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
var OpengistVersion = "1.7.1"
|
||||
var OpengistVersion = ""
|
||||
|
||||
var C *config
|
||||
|
||||
|
Reference in New Issue
Block a user