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"
|
|
|
|
|
2023-07-27 02:27:04 +00:00
|
|
|
"github.com/Cynosphere/comcord/state"
|
2023-07-08 20:51:26 +00:00
|
|
|
)
|
|
|
|
|
2023-07-27 02:27:04 +00:00
|
|
|
func QuitCommand() {
|
|
|
|
client := state.GetClient()
|
|
|
|
|
2023-07-10 19:04:40 +00:00
|
|
|
fmt.Print("Unlinking TTY...\n\r")
|
2023-07-27 02:27:04 +00:00
|
|
|
client.Close()
|
2023-07-08 20:51:26 +00:00
|
|
|
os.Exit(0)
|
|
|
|
}
|