Skip to content

feat(tar): add -C (change directory) and -O (stdout) flags#302

Merged
chaliy merged 1 commit intomainfrom
claude/issue-278-tar-flags-76a2F
Feb 26, 2026
Merged

feat(tar): add -C (change directory) and -O (stdout) flags#302
chaliy merged 1 commit intomainfrom
claude/issue-278-tar-flags-76a2F

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 26, 2026

Summary

  • Add -C DIR flag to extract files relative to a specified directory
  • Add -O flag to write extracted file contents to stdout instead of VFS
  • Parse flags correctly when combined (e.g., -xzf)

Test plan

  • CI green
  • Manual: tar -xzf archive.tar.gz -C /tmp/output extracts to correct dir
  • Manual: tar -xf archive.tar -O file.txt outputs file content to stdout

Closes #278

-C DIR: extract files relative to DIR instead of cwd
-O: write extracted file contents to stdout instead of VFS

Closes #278
@chaliy chaliy merged commit 3b9fad9 into main Feb 26, 2026
16 checks passed
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.

feat: tar -C (change directory) and -O (stdout) flags not implemented

2 participants