v1.3.0
Pre-release
Pre-release
What's new
Added
--appoption toinfat listfor listing document types handled by a given application.- New
InfatError.conflictingOptionsto enforce that exactly one of--appor--extis provided. - Enhanced UTI-derivation errors via
InfatError.couldNotDeriveUTI, including the offending extension in the message.
Changed
- Refactored the
listcommand to use two exclusive@Optionparameters (--app,--ext) with XOR validation. - Switched PList parsing to
DictionaryPList(url:)and UTI lookup toUTType(filenameExtension:). - Replaced ad-hoc
printcalls withlogger.infofor consistent, leveled logging. - Renamed
deriveUTIFromExtension(extention:)toderiveUTIFromExtension(ext:)for clarity and consistency.
Fixed
- Corrected typos in
FileSystemUtilities.deriveUTIFromExtensionsignature and related debug messages. - Fixed
FileManagerexistence checks forInfo.plistby using the correctpathproperty. - Resolved parsing discrepancies in
listTypesForAppto ensure accurate reading ofCFBundleDocumentTypes.
Classes are a hamstrung feature that I will not ship until I can get some better handling of the errors in the space. Use this release if you know their limitations.