Skip to content

Add stdlib temp helpers#57

Merged
codeforester merged 2 commits into
enhancement/54-20260621-stdlib-cleanup-trapsfrom
enhancement/53-20260621-stdlib-temp-helpers
Jun 21, 2026
Merged

Add stdlib temp helpers#57
codeforester merged 2 commits into
enhancement/54-20260621-stdlib-cleanup-trapsfrom
enhancement/53-20260621-stdlib-temp-helpers

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Add std_make_temp_file and std_make_temp_dir helpers backed by portable mktemp templates.
  • Register created paths for EXIT cleanup by default, with --keep for caller-owned cleanup.
  • Document the temp helper contract and add focused BATS coverage.

Validation

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

Stacked on #56.
Fixes #53

@codeforester codeforester marked this pull request as ready for review June 21, 2026 05:03
## 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 merged commit 0765f00 into enhancement/54-20260621-stdlib-cleanup-traps Jun 21, 2026
2 checks passed
@codeforester codeforester deleted the enhancement/53-20260621-stdlib-temp-helpers branch June 21, 2026 05:06
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