package main import ( "os" "git.zzyxyz.com/zzy/goncdu/node" "git.zzyxyz.com/zzy/goncdu/tui" ) func main() { argc := len(os.Args) manager := node.NewNodeManager() if argc == 1 { // using mouse to click start goto START } // arguments to start tui manager.SetRootPath(os.Args[1]) // if !manager.SetRootPath(os.Args[1]) { // if res := manager.SetRootPath("."); !res { // fmt.Println("Invalid `.` Path") // return // } // } START: tui.ShowMain(manager) }