mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
refactor: handle slash commands in a separate function
* quit gorc when "/quit" is sent * move tea commands into their own package * other small fixes
This commit is contained in:
@@ -72,6 +72,12 @@ type Client struct {
|
||||
|
||||
// Reference to the bubbletea program
|
||||
Tea *tea.Program
|
||||
|
||||
// Index of the first visible tab in the tab bar
|
||||
FirstTabIndexInTabBar int
|
||||
|
||||
// Index of the last visible tab in the tab bar
|
||||
LastTabIndexInTabBar int
|
||||
}
|
||||
|
||||
const CRLF = "\r\n"
|
||||
|
||||
Reference in New Issue
Block a user