Reverted changes that used bubbletea lib

Fixed some minor issues with backup func
added stdout to backup functions
added stdout to launchserver functions
changed tar execs to add verbos for stdout
This commit is contained in:
2026-01-14 15:13:59 -07:00
parent 86ccf302ea
commit e7f967c6bd
8 changed files with 18 additions and 220 deletions

26
main.go
View File

@@ -3,33 +3,15 @@ package main
import (
"fmt"
"os"
tea "github.com/charmbracelet/bubbletea"
)
var mmChouice string
func mainMenu() {
if len(os.Args) == 1 {
p := tea.NewProgram((initialmmModel()))
if _, err := p.Run(); err != nil {
fmt.Printf("Error starting TUI: %v", err)
os.Exit(1)
}
fmt.Println()
}
}
var c = readCfg(fmConfig)
func main() {
c := readCfg(fmConfig)
if len(os.Args) == 1 {
mainMenu()
if mmChouice != "" {
if mmChouice == "start" {
fmt.Println("works: " + mmChouice)
}
// IM HERE -+-+-+-+-+-+-+-+-+-+-
}
fmt.Println("Use 'start', 'stop', or 'backup' command")
fmt.Println("ex. factoryman start")
fmt.Println("To configure edit 'conifg.yml'")
} else if len(os.Args) > 1 {
switch os.Args[1] {
case "start":