mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-18 03:54:10 +02:00
Moved cli and web directory into app dir
This commit is contained in:
21
apps/cli/cli.go
Normal file
21
apps/cli/cli.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user