-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
executable file
·43 lines (39 loc) · 2.01 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package main
import (
"bufio"
"fmt"
"os"
"strings"
parser "./Analisis"
"github.com/fatih/color"
)
func main() {
blue := color.New(color.FgCyan)
boldblue := blue.Add(color.Bold)
boldblue.Println("╔════════════════════════════════════════════════════════════════════════╗")
boldblue.Println("║ ║")
boldblue.Println("║ B I E N V E N I D O ║")
boldblue.Println("║ C O N S O L A D E C O M A N D O S ║")
boldblue.Println("║ ║")
boldblue.Println("╠════════════════════════════════════════════════════════════════════════╣")
boldblue.Println("║ ║")
boldblue.Println("║ 1. Comandos Disponibles ║")
boldblue.Println("║ 2. Reportes Disponibles ║")
boldblue.Println("║ 3. Acerca de... ║")
boldblue.Println("║ ║")
boldblue.Println("╚════════════════════════════════════════════════════════════════════════╝")
Menu()
}
//Menu is...
func Menu() {
for {
fmt.Print(" >> ")
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
Comando := scanner.Text()
if strings.ToLower(Comando) == "salir" {
return
}
parser.Analizar(Comando)
}
}