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:
26
main.go
26
main.go
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user