| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Add --device/-d to the logs subparser, resolving the same way pn run does via _resolve_device. - Android: set ANDROID_SERIAL from the resolved device so adb/logcat target it for the whole stream. - iOS: thread the resolved UDID into _start_ios_log_stream instead of always falling back to the booted simulator. Physical iOS devices print the existing Console.app guidance and exit, matching how pn logs already behaves without --device. - Add CLI tests covering the Android ANDROID_SERIAL path, the iOS UDID threading (both resolved and no-device/booted-fallback cases), the physical-device rejection, a bad --device query, and that --device is actually wired through argparse. - Document the new flag in docs/api/cli.md. Fixes pythonnative#38
- Print the physical-device pointer again when no simulator is booted, not only when --device names a physical device, so the pre-existing behavior of plain `pn logs ios` is unchanged. - Add a regression test for that path. - Pop ANDROID_SERIAL in the Android --device test so the value exported by the command doesn't leak into the rest of the pytest session. - Drop an unused tmp_path fixture parameter. - Mention [--device D] in the module docstring and reword the CLI reference entry without an em dash.
|
Thank you so much! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #38