v0.8.0 wasm client added, cli client and makefile updated
This commit is contained in:
19
cmd/chess-client-cli/exit_wasm.go
Normal file
19
cmd/chess-client-cli/exit_wasm.go
Normal file
@ -0,0 +1,19 @@
|
||||
// FILE: lixenwraith/chess/cmd/chess-client-cli/exit_wasm.go
|
||||
//go:build js && wasm
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"chess/internal/client/display"
|
||||
)
|
||||
|
||||
func handleExit() (restart bool) {
|
||||
display.Println(display.Cyan, "Goodbye!")
|
||||
|
||||
display.Println(display.Yellow, "\n━━━━━━━━━━━━━━━━━━━━━━━━")
|
||||
display.Println(display.Yellow, "Session ended.")
|
||||
display.Println(display.Yellow, "Restarting the client.")
|
||||
display.Println(display.Yellow, "━━━━━━━━━━━━━━━━━━━━━━━━\n")
|
||||
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user