cmd

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 72 Imported by: 40

Documentation

Overview

Package cmd contains the entry points for OPA commands.

Index

Constants

This section is empty.

Variables

View Source
var RootCommand = &cobra.Command{
	Use:   path.Base(os.Args[0]),
	Short: "Open Policy Agent (OPA)",
	Long:  "An open source project to policy-enable your service.",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		message, fatal := deprecation.CheckWarnings(os.Environ(), cmd.Use)
		if message != "" {
			cmd.PrintErr(message)
			if fatal {
				os.Exit(1)
			}
		}

	},
}

RootCommand is the base CLI command that all subcommands are added to.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL