mirror of
https://github.com/MickMake/GoSungrow.git
synced 2025-04-01 00:18:23 +02:00
Committed v3.0.0
This commit is contained in:
parent
35940a0219
commit
9c90783e4f
@ -691,7 +691,7 @@ const DefaultMqttFile = `{
|
||||
],
|
||||
"exclude": [
|
||||
]
|
||||
}
|
||||
},
|
||||
"getPsDetail": {
|
||||
"include": [
|
||||
"virtual.*"
|
||||
@ -700,4 +700,4 @@ const DefaultMqttFile = `{
|
||||
]
|
||||
}
|
||||
}
|
||||
`
|
||||
`
|
||||
|
11
main.go
11
main.go
@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"GoSungrow/cmd"
|
||||
"fmt"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"os"
|
||||
)
|
||||
|
||||
@ -12,15 +11,7 @@ import (
|
||||
|
||||
|
||||
func main() {
|
||||
var err error
|
||||
|
||||
for range Only.Once {
|
||||
err = cmd.Execute()
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
err := cmd.Execute()
|
||||
if err != nil {
|
||||
_, _ = fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
|
||||
os.Exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user