Skip to content

Add CLI option for file extensions - #94

Open
huybik wants to merge 1 commit into
Lord-Kamina:masterfrom
huybik:add-extension-cli-option
Open

Add CLI option for file extensions#94
huybik wants to merge 1 commit into
Lord-Kamina:masterfrom
huybik:add-extension-cli-option

Conversation

@huybik

@huybik huybik commented Jun 17, 2026

Copy link
Copy Markdown

Summary

  • Add --extension/--ext to getHandler and setHandler
  • Resolve file extensions to their preferred UTI before using the existing LaunchServices handler paths
  • Document extension-based CLI usage in the README

This gives CLI users a direct path for extensions that resolve to dynamic UTIs, such as .3mf, without first looking up or copying the generated UTI manually.

Related to #53.

Verification

  • xcodebuild -project "SwiftDefaultApps CLI.xcodeproj" -scheme "Build CLI" -configuration Debug CODE_SIGNING_ALLOWED=NO build
  • Built swda getHandler --extension plist
  • Built swda getHandler --extension 3mf

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