Reworked tui in bubbletea instead of tview

This commit is contained in:
2025-10-17 12:13:45 +02:00
parent b2f106dcdf
commit b4f7007a9f
6 changed files with 227 additions and 147 deletions
+5 -1
View File
@@ -11,6 +11,7 @@ func main() {
configFlag := flag.String("config", "", "Specify a config file")
helpFlag := flag.Bool("help", false, "Show help")
newFlag := flag.Bool("new", false, "Add new command to config")
flag.Parse()
@@ -24,6 +25,8 @@ func main() {
printHelp()
case *configFlag != "":
StartTui(*configFlag)
case *newFlag:
HandleInput()
default:
printHelp()
os.Exit(1)
@@ -34,5 +37,6 @@ func printHelp() {
fmt.Println(`Usage: cheatsh [options]
Options:
--config <file> Specify a config file
--help Show this help message`)
--help Show this help message
--new Add a new command to the config file`)
}