-
Notifications
You must be signed in to change notification settings - Fork 111
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
cargo-apk: Add --device
arg to select adb device by serial
#329
Conversation
This is exactly what #[derive(Parser)]
struct CargoApkArgs {
#[clap(flatten)]
pub subcommand_args: cargo_subcommand::Args,
/// Device serial to use, from `adb devices`
#[clap(short, long)]
pub device: Option<String>,
} @dvc94ch Was there anything pending for |
--device
arg to select adb device by serial
Hey @MarijnS95, sorry for being absent. Started a new job. Let me know if you need anything like repo access, if you send an email I'll be more likely to read it than if it's a gh notification. |
@dvc94ch No worries, we already decided that PR would go stale in favour of X, though I might pick it up at some point to keep I/we have also been super busy with not much time left for these tools, which doesn't really matter since they (both No need for anything else, I have repo access to both |
This feels quite hacky, but it doesn't look like cargo_subcommand has adequate functionality to filter or add new arguments to some of the commands.
This adds support for a
--device
arg in bothcargo apk run
andcargo apk gdb
to run on a specific device whenever one is present.