/info endpoint (#85)
This commit is contained in:
parent
c3ea45d900
commit
e2d9de191d
11 changed files with 200 additions and 36 deletions
|
|
@ -17,6 +17,7 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"code.vikunja.io/api/pkg/version"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
@ -29,6 +30,6 @@ var versionCmd = &cobra.Command{
|
|||
Use: "version",
|
||||
Short: "Print the version number of Vikunja",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("Vikunja api version " + Version)
|
||||
fmt.Println("Vikunja api version " + version.Version)
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue