mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
b7c1a1c183
Cobra will already print the error, there is no need to do it again. Fixes #5115. Signed-off-by: Iván Peña Hernández <ivanphdz13@gmail.com>
22 lines
559 B
Go
22 lines
559 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 (
|
|
"os"
|
|
|
|
"github.com/open-policy-agent/opa/cmd"
|
|
)
|
|
|
|
func main() {
|
|
if err := cmd.RootCommand.Execute(); err != nil {
|
|
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
|