comcord/commands/quit.go

17 lines
203 B
Go
Raw Normal View History

2023-07-08 20:51:26 +00:00
package commands
import (
2023-07-10 19:04:40 +00:00
"fmt"
2023-07-08 20:51:26 +00:00
"os"
"github.com/Cynosphere/comcord/state"
2023-07-08 20:51:26 +00:00
)
func QuitCommand() {
client := state.GetClient()
2023-07-10 19:04:40 +00:00
fmt.Print("Unlinking TTY...\n\r")
client.Close()
2023-07-08 20:51:26 +00:00
os.Exit(0)
}