-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
49 lines (42 loc) · 2.12 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
44
45
46
47
48
49
package main
import (
"fmt"
"os"
"github.com/S1ro1/popcorn-cli/src/cmd"
)
func displayAsciiArt() {
art := `
_ __ _ ______ _
| | / / | | | ___ \ | |
| |/ / ___ _ __ _ __ ___ | | | |_/ / ___ _| |_
| \ / _ \ '__| '_ \ / _ \| | | ___ \ / _ \| | __|
| |\ \ __/ | | | | | __/| | | |_/ /| (_) | | |_
\_| \_/\___|_| |_| |_|\___|_/ \____/ \___/|_|\__|
POPCORN CLI - GPU MODE
┌───────────────────────────────────────┐
│ ┌─────┐ ┌─────┐ ┌─────┐ │
│ │ooOoo│ │ooOoo│ │ooOoo│ │▒
│ │oOOOo│ │oOOOo│ │oOOOo│ │▒
│ │ooOoo│ │ooOoo│ │ooOoo│ ┌────────┐ │▒
│ └─────┘ └─────┘ └─────┘ │████████│ │▒
│ │████████│ │▒
│ ┌────────────────────────┐ │████████│ │▒
│ │ │ │████████│ │▒
│ │ POPCORN GPU COMPUTE │ └────────┘ │▒
│ │ │ │▒
│ └────────────────────────┘ │▒
│ │▒
└───────────────────────────────────────┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
`
fmt.Println(art)
}
func main() {
if os.Getenv("POPCORN_API_URL") == "" {
fmt.Println("POPCORN_API_URL is not set. Please set it to the URL of the Popcorn API.")
os.Exit(1)
}
displayAsciiArt()
cmd.Execute()
}