feat(stdlib): add fs_*/env_args/format builtins + my-cli argv forwarding#10
Merged
Conversation
Six new stdlib builtins for tooling workloads:
- fs_write_file / fs_read_file / fs_create_dir_all / fs_exists
- env_args (host-supplied with std::env::args().skip(1) fallback)
- format (positional {} substitution, {{ }} escapes)
Plus PROGRAM_ARGS OnceLock + pub fn set_program_args, and my-cli's Run
subcommand grows a trailing_var_arg field forwarded to set_program_args.
Validated by an end-to-end run of an out-of-tree scaffold tool against
six idaptik-port component repos.
See PR body for details and open design questions.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six new stdlib builtins for tooling workloads:
Plus PROGRAM_ARGS OnceLock + pub fn set_program_args, and my-cli's Run subcommand grows a trailing_var_arg field forwarded to set_program_args.
Validated by an end-to-end run of an out-of-tree scaffold tool against six idaptik-port component repos.
See PR body for details and open design questions.