Skip to content

ArgTools: Add FileSpec writer - #44

Merged
Keno merged 1 commit into
JuliaIO:masterfrom
KenoAIStaging:codex/filespec-argwrite
Jun 8, 2026
Merged

Keno merged 1 commit into
JuliaIO:masterfrom
KenoAIStaging:codex/filespec-argwrite

Conversation

@Keno

@Keno Keno commented Jun 8, 2026

Copy link
Copy Markdown
Member

Add FileSpec as an ArgWrite target that carries a path and file creation mode. A particular motivation is specifying a file mode for the result of download.

@codecov

codecov Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.71%. Comparing base (89d1959) to head (8a985b5).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
+ Coverage   88.54%   89.71%   +1.17%     
==========================================
  Files           1        1              
  Lines          96      107      +11     
==========================================
+ Hits           85       96      +11     
  Misses         11       11              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@StefanKarpinski StefanKarpinski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

Comment thread src/ArgTools.jl Outdated
"""
struct FileSpec
path::String
mode::Int

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mode should be UInt16?

Add FileSpec as an ArgWrite target that carries a path and file creation mode, allowing callers to specify file-opening options without embedding that policy in downstream packages.

Co-authored-by: OpenAI Codex <codex@openai.com>
@Keno
Keno force-pushed the codex/filespec-argwrite branch from b3a728a to 8a985b5 Compare June 8, 2026 21:24
@Keno
Keno merged commit f77276a into JuliaIO:master Jun 8, 2026
12 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.

2 participants