forked from go-shiori/shiori
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
38 lines (33 loc) · 830 Bytes
/
Copy pathmain.go
File metadata and controls
38 lines (33 loc) · 830 Bytes
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
package main
import (
"github.com/go-shiori/shiori/internal/cmd"
"github.com/go-shiori/shiori/internal/model"
"github.com/sirupsen/logrus"
// Add this to prevent it removed by go mod tidy
_ "github.com/shurcooL/vfsgen"
)
var (
version = "dev"
commit = "none"
date = "unknown"
)
func init() {
// Set globally
model.BuildVersion = version
model.BuildCommit = commit
model.BuildDate = date
}
// @title Shiori API
// @version 1.0
// @description Shiori is a simple bookmarks manager. This is the documentation for its HTTP API.
// @BasePath /
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and the JWT token.
func main() {
err := cmd.ShioriCmd().Execute()
if err != nil {
logrus.Fatalln(err)
}
}