omarchy-send/internal/client
28allday 2342beff10 Send files and folders headlessly with -to
`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>
2026-06-07 15:13:25 +01:00
..
cancel_test.go Stop a cancelled transfer from carrying on into the next one 2026-05-27 21:20:30 +01:00
client.go Send files and folders headlessly with -to 2026-06-07 15:13:25 +01:00
client_test.go Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00
files_sync_test.go Send files and folders headlessly with -to 2026-06-07 15:13:25 +01:00
folder_test.go Support sending folders, not just single files 2026-05-27 21:00:52 +01:00
message_sync_test.go Headless one-shot message send + desktop notifications on incoming 2026-05-29 14:13:43 +01:00
message_test.go Clipboard send/copy, PIN for messages, and quiet stdlib logging 2026-05-27 22:06:24 +01:00
prepare_204_test.go Headless one-shot message send + desktop notifications on incoming 2026-05-29 14:13:43 +01:00
progress.go Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00