forked from elastic/fleet-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
34 lines (26 loc) · 943 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
29
30
31
32
33
34
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.
//go:generate schema-generate -esdoc -s -o internal/pkg/model/schema.go -p model model/schema.json
//go:generate go fmt internal/pkg/model/schema.go
//go:generate schema-generate -m es -o internal/pkg/es/mapping.go -p es model/schema.json
//go:generate go fmt internal/pkg/es/mapping.go
package main
import (
"fmt"
"os"
// Needed for the generator not to be nuked by go tidy. Fails make check otherwise.
_ "github.com/aleksmaus/generate"
"github.com/elastic/fleet-server/v7/cmd/fleet"
)
const defaultVersion = "8.0.0"
var (
Version string = defaultVersion
)
func main() {
cmd := fleet.NewCommand(Version)
if err := cmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}