Hat tip @keith for the original concept.
This is rewritten
- using the "New" Contacts API
- Swift Argument Parser
- for educational purposes only
contacts-cli % swift build Building for debugging... contacts-cli % ./.build/debug/contacts --help OVERVIEW: Command line interface for 🍎Contacts.
USAGE: contacts
OPTIONS: -h, --help Show help information.
SUBCOMMANDS: search whoami display your Contacts 'Me' card.
See 'contacts help ' for detailed help.