Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass trailing x run -- arguments to launch command #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Jan 29, 2025

If you want to pass string "extras" into an Android intent via am start, call x run ... -- -e extraKey "extra string" (and similar for other types like --ez key bool for booleans, or -d URI for data URIs). All arguments listed by am help under the start command (including the INTENT specification) are supported.

On the host, this passes the arguments as-is to the running executable, similar to cargo run .. -- <launch_args>.

For iOS, these are passed to idevicedebug run.

@MarijnS95 MarijnS95 changed the title Pass arbitrary arguments in x run via -- suffix Pass trailing x run -- parameters to launch command Jan 30, 2025
@MarijnS95 MarijnS95 changed the title Pass trailing x run -- parameters to launch command Pass trailing x run -- arguments to launch command Jan 30, 2025
If you want to pass string "extras" into an Android intent via `am
start`, call `x run ... -- -e extraKey "extra string"` (and similar
for other types like `--ez key bool` for booleans, or `-d URI` for data
URIs).  [All arguments listed by `am help` under the `start` command]
(including the `INTENT` specification) are supported.

On the host, this passes the arguments as-is to the running executable,
similar to `cargo run .. -- <launch_args>`.

For iOS, these are passed to [`idevicedebug run`].

[All arguments listed by `am help` under the `start` command]: https://developer.android.com/tools/adb#am
[`idevicedebug run`]: https://manpages.debian.org/testing/libimobiledevice-utils/idevicedebug.1.en.html
@MarijnS95 MarijnS95 force-pushed the x-run-launch-params branch from 9baa073 to 34c6032 Compare January 30, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant