prototype

This commit is contained in:
2025-08-20 21:15:35 +03:00
parent 598d516b57
commit 58414744ce
11 changed files with 390 additions and 0 deletions

28
cmd/main.go Normal file
View File

@@ -0,0 +1,28 @@
package main
import (
"fmt"
"os"
"git.gulenok.ru/greenhaze/old_carga/internal/build"
"git.gulenok.ru/greenhaze/old_carga/internal/create"
)
func main() {
execute_action()
}
// парсит 1 os.Args и вызывает нужный метод
func execute_action() {
action := os.Args[1]
switch action {
case "создай":
create.CreateProject()
case "собери":
build.BuildProject()
case "установи":
fmt.Println("эмулирую установку модуля")
case обавь_цель":
fmt.Println("Добавляю цель")
}
}