/
main.go
56 lines (45 loc) · 1.28 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
53
54
55
56
// Main package for the GraphJin service and command line tooling
/*
GraphJin
For documentation, visit https://graphjin.com
Commit SHA-1 : 75ff551
Commit timestamp : 2020-04-13 00:43:18 -0400
Go version : go1.14
Licensed under the Apache Public License 2.0
Copyright 2021, Vikram Rangnekar
Usage:
graphjin [command]
Available Commands:
conf:dump Dump config to file
db:create Create database
db:drop Drop database
db:migrate Migrate the database
db:new Generate a new migration
db:reset Reset database
db:seed Run the seed script to seed the database
db:setup Setup database
db:status Print current migration status
help Help about any command
new Create a new application
serv Run the graphjin service
version GraphJin binary version information
Flags:
-h, --help help for graphjin
--path string path to config files (default "./config")
Use "graphjin [command] --help" for more information about a command.
*/
package main
import "github.com/dosco/graphjin/internal/serv"
var (
// These variables are set using -ldflags
version string
commit string
date string
)
func main() {
serv.Cmd(serv.BuildInfo{
Version: version,
Commit: commit,
Date: date,
})
}