comcord/commands/quit.go
2023-07-26 20:27:04 -06:00

16 lines
203 B
Go

package commands
import (
"fmt"
"os"
"github.com/Cynosphere/comcord/state"
)
func QuitCommand() {
client := state.GetClient()
fmt.Print("Unlinking TTY...\n\r")
client.Close()
os.Exit(0)
}