webdav-server/cmd/version.go
Henrique Dias c5f3907994
refactor: fix ci and put files where they belong (#15)
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-05-12 19:40:58 +01:00

19 lines
299 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var version = "(untracked)"
func init() {
rootCmd.AddCommand(&cobra.Command{
Use: "version",
Short: "Print the version number",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("WebDAV version " + version)
},
})
}