Skip to content

Add stdlib introspection helpers#58

Merged
codeforester merged 2 commits into
enhancement/53-20260621-stdlib-temp-helpersfrom
enhancement/52-20260621-stdlib-introspection
Jun 21, 2026
Merged

Add stdlib introspection helpers#58
codeforester merged 2 commits into
enhancement/53-20260621-stdlib-temp-helpersfrom
enhancement/52-20260621-stdlib-introspection

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Add std_command_path for non-fatal external command path lookup.
  • Add std_function_exists and assert_function_exists for Bash function introspection.
  • Document the introspection contract and add focused BATS coverage.

Validation

  • bats lib/bash/std/tests/lib_std.bats
  • ./tests/validate.sh
  • git diff --check

Stacked on #57.
Fixes #52

@codeforester codeforester marked this pull request as ready for review June 21, 2026 05:03
## Summary
- Add std_run_with_timeout with std_run-style --no-exit, --quiet, and
dry-run handling.
- Prefer timeout/gtimeout when available and provide a Bash fallback for
macOS/Linux portability.
- Document timeout status behavior and add focused BATS coverage.

## Validation
- bats lib/bash/std/tests/lib_std.bats
- ./tests/validate.sh
- git diff --check

Stacked on #58.
Fixes #51
@codeforester codeforester merged commit 9a48677 into enhancement/53-20260621-stdlib-temp-helpers Jun 21, 2026
2 checks passed
@codeforester codeforester deleted the enhancement/52-20260621-stdlib-introspection branch June 21, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant