Skip to content

feat(stdlib): add fs_*/env_args/format builtins + my-cli argv forwarding#10

Merged
hyperpolymath merged 1 commit into
mainfrom
feat/stdlib-fs-env-format
May 4, 2026
Merged

feat(stdlib): add fs_*/env_args/format builtins + my-cli argv forwarding#10
hyperpolymath merged 1 commit into
mainfrom
feat/stdlib-fs-env-format

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

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.

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>
@hyperpolymath hyperpolymath merged commit efe0e0f into main May 4, 2026
28 of 34 checks passed
@hyperpolymath hyperpolymath deleted the feat/stdlib-fs-env-format branch May 4, 2026 22:19
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