mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 11:03:59 +00:00
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>
12 lines
188 B
Bash
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
|
|
}
|