filebrowser/cmd/version.go
Henrique Dias 4744dc3f75 feat: new user api and quick setup
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2018-12-31 16:03:36 +00:00

21 lines
349 B
Go

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