forked from dimiro1/ipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
52 lines (43 loc) · 1.23 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
50
51
52
// Copyright 2014 Claudemiro Alves Feitosa Neto. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package main
import (
"flag"
"fmt"
"github.com/dimiro1/ipe/ipe"
)
// These variables are generated by the linker
// please see the makefile for mor information.
var (
version = "version"
buildstamp = "buildstamp"
githash = "githash"
)
// Main function, initialize the system
func main() {
var filename = flag.String("config", "config.json", "Config file location")
flag.Parse()
printBanner()
ipe.Start(*filename)
}
// Print a beautiful banner
func printBanner() {
fmt.Print("\033[31m")
fmt.Print(`
d8b
Y8P
888 88888b. .d88b.
888 888 "88b d8P Y8b
888 888 888 88888888
888 888 d88P Y8b.
888 88888P" "Y8888
888
888
888
`)
fmt.Println("\033[0m")
fmt.Println("\033[32mWelcome to Ipê - Yet another Pusher server clone (https://github.com/dimiro1/ipe)\033[0m")
fmt.Printf("\033[32mVersion %s+%s.git.%s\033[0m\n", version, buildstamp, githash)
fmt.Println("\033[33mBy: Claudemiro Alves Feitosa Neto <[email protected]>\033[0m")
}