This is a command line tool to share text/url to Notes/Message/Email/Airdrop from your terminal.
git clone https://github.com/mosugi/mshare.git
cd mshare
make install
mshare notes "Hello World"
mshare notes https://google.com
mshare message "Hello World"
mshare message https://google.com
mshare email "Hello World"
mshare email https://google.com
mshare airdrop https://google.com
This tool can receive arguments from native messaging.
Example: https://github.com/mosugi/ShareToNotes-extension
https://github.com/vldmrkl/airdrop-cli https://gist.github.com/tearfulDalvik/e656177d3df7521cd61dffdc24ef3ec3 https://qiita.com/hcrane/items/e784a5f7c4fb5e6470e6