[cmd] initiate

This commit is contained in:
Alireza Ahmadi
2024-02-29 23:28:29 +01:00
parent e404342e2c
commit bf1759ceda
6 changed files with 324 additions and 1 deletions
+11 -1
View File
@@ -5,10 +5,11 @@ import (
"os"
"os/signal"
"s-ui/app"
"s-ui/cmd"
"syscall"
)
func main() {
func runApp() {
app := app.NewApp()
err := app.Init()
@@ -36,3 +37,12 @@ func main() {
}
}
}
func main() {
if len(os.Args) < 2 {
runApp()
return
} else {
cmd.ParseCmd()
}
}