Refactor to make the maintanance simpler
- Fixed issue with webhooks
This commit is contained in:
+52
@@ -0,0 +1,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"
|
||||
|
||||
"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")
|
||||
}
|
||||
Reference in New Issue
Block a user