wm/cmd/bspc/main.go

24 lines
278 B
Go
Raw Normal View History

2022-12-26 02:18:39 +00:00
package main
import (
"fmt"
"os"
"tuxpa.in/t/wm/src/sock"
)
func main() {
s, err := sock.Default()
errExit(err)
resp, err := s.Send(os.Args[1:]...)
errExit(err)
fmt.Print(resp)
}
func errExit(err error) {
if err != nil {
fmt.Printf(err.Error())
os.Exit(1)
}
}