mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-18 14:54:09 +02:00
22 lines
304 B
Go
22 lines
304 B
Go
package cli
|
|
|
|
import "fmt"
|
|
|
|
func Run() error {
|
|
fmt.Println("Definitive Open Source CLI")
|
|
fmt.Println("1) Add new project")
|
|
|
|
var choice int
|
|
fmt.Print("Select an option: ")
|
|
fmt.Scanln(&choice)
|
|
|
|
switch choice {
|
|
case 1:
|
|
return AddProject()
|
|
default:
|
|
fmt.Println("Invalid option")
|
|
}
|
|
|
|
return nil
|
|
}
|