cmd

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:          "policy-bot",
	Short:        "A bot for defining and enforcing policy on Github pull requests.",
	Long:         "A bot for defining and enforcing policy on Github pull requests.",
	SilenceUsage: true,
}

RootCmd represents the base command when called without any subcommands

View Source
var ServerCmd = &cobra.Command{
	Use:   "server",
	Short: "Runs policy-bot in server mode.",
	Long:  "Runs policy-bot in a long-running server mode, receiving and responding to webhooks.",

	RunE: serverCmd,
}
View Source
var ValidationCmd = &cobra.Command{
	Use:   "validate",
	Short: "Validates the syntax and structure of a policy file.",
	Long:  "Validates the YAML syntax and logical structure of a local policy file. It does not support remote policy references.",

	RunE: validationCmd,
}

Functions

func IsDebugMode

func IsDebugMode() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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