Paul Lecuq
36c5d6f2ed
- web service with json support - web page - cron service to update database infos
22 lines
333 B
Go
22 lines
333 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
packr "github.com/gobuffalo/packr/v2"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "shows packr version",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
fmt.Println(packr.Version)
|
|
return nil
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|