2023-04-19 13:17:33 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2023-04-25 14:55:57 +02:00
|
|
|
"net/netip"
|
2023-04-19 13:17:33 +02:00
|
|
|
|
|
|
|
"github.com/google/uuid"
|
2023-04-25 12:55:00 +02:00
|
|
|
"github.com/thefeli73/polemos/pcsdk"
|
2023-04-19 13:17:33 +02:00
|
|
|
"github.com/thefeli73/polemos/state"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-05-02 15:27:43 +02:00
|
|
|
proxy := pcsdk.BuildProxy(netip.MustParseAddrPort("127.0.0.1:14000"))
|
2023-04-19 13:17:33 +02:00
|
|
|
uuid := uuid.MustParse("87e79cbc-6df6-4462-8412-85d6c473e3b1")
|
|
|
|
|
2023-05-02 15:27:43 +02:00
|
|
|
err := proxy.Delete(state.CustomUUID(uuid))
|
2023-04-19 13:17:33 +02:00
|
|
|
if err != nil {
|
2023-04-25 14:55:57 +02:00
|
|
|
fmt.Printf("error executing delete command: %s\n", err)
|
2023-04-25 12:55:00 +02:00
|
|
|
} else {
|
2023-04-25 14:55:57 +02:00
|
|
|
fmt.Println("executing delete command completed")
|
2023-04-19 13:17:33 +02:00
|
|
|
}
|
|
|
|
}
|