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.
Click to show internal directories.
Click to hide internal directories.