-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmain.go
28 lines (24 loc) · 766 Bytes
/
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
package main
import (
"fmt"
"os"
"github.com/kataras/iris-cli/cmd"
)
const (
// buildRevision is the build revision (docker commit string or git rev-parse HEAD) but it's
// available only on the build state, on the cli executable - via the "--version" flag.
buildRevision = ""
// buildTime is the build unix time (in seconds since 1970-01-01 00:00:00 UTC), like the `buildRevision`,
// this is available on after the build state, inside the cli executable - via the "--version" flag.
//
// Note that this buildTime is not int64, it's type of string and it is provided at build time.
// Do not change!
buildTime = ""
)
func main() {
app := cmd.New(buildRevision, buildTime)
if err := app.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}