prole/mock_val/lib/shell/knoe_guardrails.sh
chrisfu 11064cbd5b refactor(mock_val): rename prole_* shell lib and cfg tooling to knoe_* namespace
Shell library (mock_val/lib/shell/):
  - Delete prole_cmd.sh, prole_env.sh, prole_guardrails.sh,
    prole_secrets.sh, prole_string.sh, prole_yaml.sh
  - Add knoe_* equivalents with same functionality

Config tooling:
  - Delete mock_val/prole_cfg.sh, mock_val/sync-prole-cfg.py
  - Add mock_val/knoe_cfg.sh, mock_val/sync-knoe-cfg.py

Mirrors the broader prole → knoe project rename.

Co-authored-by: Junie <junie@jetbrains.com>
2026-05-23 21:31:14 -07:00

12 lines
188 B
Bash

#!/usr/bin/env bash
knoe_guard_nonempty() {
local name="$1"
local value="${2:-}"
if [[ -z "$value" ]]; then
echo "ERROR: ${name} is required" >&2
return 2
fi
return 0
}