Add ctui binary
This commit is contained in:
parent
544bf2b219
commit
7b8a17764e
3
Makefile
3
Makefile
|
@ -16,6 +16,9 @@ client:
|
|||
testinp:
|
||||
go build -o ./bin/$@ ./cmd/$@
|
||||
|
||||
ctui:
|
||||
go build -o ./bin/$@ ./cmd/$@
|
||||
|
||||
gen_test_certs:
|
||||
openssl ecparam -genkey -name prime256v1 -out server.key
|
||||
openssl req -new -x509 -key server.key -out server.pem -days 3650
|
||||
|
|
23
cmd/ctui/main.go
Normal file
23
cmd/ctui/main.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"git.qowevisa.me/Qowevisa/gotell/tui"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logFile, err := os.OpenFile("ctui.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer logFile.Close()
|
||||
log.SetOutput(logFile)
|
||||
log.Printf("Start")
|
||||
|
||||
err = tui.UI.Run()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user