feature: Adding service run command

This commit is contained in:
mlsmaycon
2021-06-19 14:55:45 +02:00
parent 6465e2556a
commit 41b50a08d4
6 changed files with 96 additions and 11 deletions

26
cmd/service.go Normal file
View File

@@ -0,0 +1,26 @@
package cmd
import (
"github.com/kardianos/service"
"github.com/spf13/cobra"
)
func newSVCConfig() *service.Config {
return &service.Config{
Name: "wiretrustee",
DisplayName: "wiretrustee",
Description: "This is an example Go service.",
}
}
var (
serviceCmd = &cobra.Command{
Use: "service",
Short: "manages wiretrustee service",
//Run: func(cmd *cobra.Command, args []string) {
//},
}
)
func init() {
}