`omarchy-send -to <alias> <paths…>` now sends files without the TUI — from scripts, cron, or AI agents — alongside or instead of -message. Folders are sent whole with their structure recreated on the receiver, and a result line is printed per file. Paths without -to still open the TUI quick-send as before. The new SendFilesSync mirrors SendMessageSync: it blocks until the batch lands and returns errors directly (including ErrPinRequired). A missing path is a hard error up front — a script wants a non-zero exit, not a silent skip — while a file that vanishes mid-batch is skipped and reported, like the TUI path. The -dir override also rides through the new config.ExpandHome. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cancel_test.go | ||
| client.go | ||
| client_test.go | ||
| files_sync_test.go | ||
| folder_test.go | ||
| message_sync_test.go | ||
| message_test.go | ||
| prepare_204_test.go | ||
| progress.go | ||