Files
old_carga/cmd/main.go
2025-08-20 21:15:35 +03:00

29 lines
578 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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("Добавляю цель")
}
}