Reads and writes the device clipboard from the dev machine.
Primary use: pasting long strings (tokens, fixtures, URLs) into a device
text field during manual testing instead of typing them on a virtual
keyboard. The app-side counterpart is Dala.Platform.Clipboard.
Platform support:
- iOS Simulator — full read/write via
xcrun simctl pbpaste/pbcopy(the sim shares the host clipboard plumbing) - Android — not supported by adb on modern Android (clipboard access is
blocked for background processes); returns a clear error with the
adb shell input textalternative - iOS physical — not supported from CLI
Summary
Functions
Reads the clipboard of device_id (or the first connected device).
xcrun argument list that prints an iOS simulator's clipboard.
xcrun argument list that sets an iOS simulator's clipboard to text.
Text is passed via stdin (the pbcopy form reads stdin), so this returns
the args plus a marker for the dispatcher.
Sets the clipboard of device_id (or the first connected device) to text.
Same test seams as get/2.
Types
Functions
Reads the clipboard of device_id (or the first connected device).
Test seams: opts[:devices] overrides discovery, opts[:exec] overrides
the xcrun call (receives (args, input), returns {output, code}).
xcrun argument list that prints an iOS simulator's clipboard.
xcrun argument list that sets an iOS simulator's clipboard to text.
Text is passed via stdin (the pbcopy form reads stdin), so this returns
the args plus a marker for the dispatcher.
Sets the clipboard of device_id (or the first connected device) to text.
Same test seams as get/2.