Paul Lecuq
36c5d6f2ed
- web service with json support - web page - cron service to update database infos
29 lines
549 B
Go
29 lines
549 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gobuffalo/packr/v2/jam"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var buildCmd = &cobra.Command{
|
|
Use: "build",
|
|
Short: "Wraps the go build command with packr",
|
|
DisableFlagParsing: true,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
cargs := parseArgs(args)
|
|
if globalOptions.Verbose {
|
|
fmt.Println(dont)
|
|
}
|
|
if err := jam.Pack(globalOptions.PackOptions); err != nil {
|
|
return err
|
|
}
|
|
return goCmd("build", cargs...)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(buildCmd)
|
|
}
|