approval

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package approval implements JobForge's human-in-the-loop gate. Every outbound action (sending an application, marking it applied) must pass through Confirm so the user is the final decision-maker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(r io.Reader, w io.Writer, prompt string) (bool, error)

Confirm prints prompt to w, reads a line from r, and returns true only on an explicit "y"/"yes" (case-insensitive). Anything else - including empty input - is treated as a no. We default to "no" because the cost of a false positive (sending an application the user didn't approve) is much higher than the cost of being asked again.

Types

This section is empty.

Jump to

Keyboard shortcuts

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