Skip to content

feat: add --files-from config, wire protocol, and server forwarding - #2526

Merged
oferchen merged 1 commit into
masterfrom
feat/files-from-config
Feb 27, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/files-from-config

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add FilesFromSource enum (None/LocalFile/Stdin/RemoteFile) to core config with builder pattern
  • Implement wire protocol module (files_from.rs) with NUL-separated forwarding matching upstream io.c:forward_filesfrom_data()
  • Wire --files-from and --from0 through CLI parsing, server flag reception, remote invocation builder, and transfer ServerConfig
  • Comprehensive tests: 6 resolver tests, 5 server flag tests, 12 enum tests, 6 builder tests, 12 wire protocol tests (including roundtrip)

Test plan

  • All 22,565 tests pass
  • cargo fmt clean
  • cargo clippy clean (workspace, all-features, -D warnings)
  • CI: fmt+clippy, nextest (stable), Windows, macOS, musl

Implement the --files-from feature across the full stack:

- FilesFromSource enum (None/LocalFile/Stdin/RemoteFile) in core config
- Builder/accessor methods on ClientConfigBuilder and ClientConfig
- CLI resolution matching upstream options.c:2447-2490 semantics
- Server-side --files-from and --from0 flag parsing
- Remote invocation forwarding (local→stdin, remote→path)
- Wire protocol module (forward_files_from/read_files_from_stream)
  with NUL-separated format matching upstream io.c
- ServerConfig fields for transfer crate integration
@github-actions github-actions Bot added the enhancement New feature or request label Feb 27, 2026
@oferchen
oferchen merged commit 628c2f8 into master Feb 27, 2026
31 checks passed
@oferchen
oferchen deleted the feat/files-from-config branch February 27, 2026 14:34
oferchen added a commit that referenced this pull request May 1, 2026
…2526)

Implement the --files-from feature across the full stack:

- FilesFromSource enum (None/LocalFile/Stdin/RemoteFile) in core config
- Builder/accessor methods on ClientConfigBuilder and ClientConfig
- CLI resolution matching upstream options.c:2447-2490 semantics
- Server-side --files-from and --from0 flag parsing
- Remote invocation forwarding (local→stdin, remote→path)
- Wire protocol module (forward_files_from/read_files_from_stream)
  with NUL-separated format matching upstream io.c
- ServerConfig fields for transfer crate integration
oferchen added a commit that referenced this pull request May 5, 2026
…2526)

Implement the --files-from feature across the full stack:

- FilesFromSource enum (None/LocalFile/Stdin/RemoteFile) in core config
- Builder/accessor methods on ClientConfigBuilder and ClientConfig
- CLI resolution matching upstream options.c:2447-2490 semantics
- Server-side --files-from and --from0 flag parsing
- Remote invocation forwarding (local→stdin, remote→path)
- Wire protocol module (forward_files_from/read_files_from_stream)
  with NUL-separated format matching upstream io.c
- ServerConfig fields for transfer crate integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant