mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
21ac58bddc
With the embed directive, we no longer need our custom code that predates Go 1.16. Also, with the release of 1.19, we no longer desire compatibility with anything predating 1.16, so this cleanup becomes possible. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
24 lines
585 B
Go
24 lines
585 B
Go
// Copyright 2016 The OPA Authors. All rights reserved.
|
|
// Use of this source code is governed by an Apache2
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/open-policy-agent/opa/cmd"
|
|
)
|
|
|
|
func main() {
|
|
if err := cmd.RootCommand.Execute(); err != nil {
|
|
fmt.Println(err)
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
// Capabilities + built-in metadata file generation:
|
|
//go:generate build/gen-run-go.sh internal/cmd/genopacapabilities/main.go capabilities.json
|
|
//go:generate build/gen-run-go.sh internal/cmd/genbuiltinmetadata/main.go builtin_metadata.json
|