Documentation
¶
Overview ¶
Package shell implements a shell-based approver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Approver ¶
type Approver struct {
// Label is a human-friendly name.
Label string
// Command is the shell command to execute.
Command string
// Args are optional command arguments.
Args []string
// Env adds environment variables for the command.
Env map[string]string
// AllowExitCodes declares additional success exit codes.
AllowExitCodes []int
}
Approver runs a shell command and decides based on exit code.
Click to show internal directories.
Click to hide internal directories.