Files
releases/main.go
T
Ivan b7c1a1c183 CLI: don't print error twice (#5122)
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>
2022-09-12 19:56:50 +02:00

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