vanadium-archive / madb

Multi-device Android Debug Bridge (madb): A command line tool that wraps Android Debug Bridge (adb) and provides various features for controlling multiple Android devices concurrently.
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

Keyword expansion in the adb command arguments #3

Closed yyoon closed 8 years ago

yyoon commented 8 years ago

Suppose there are three named devices: Alice, Bob, and Carol.

A user might want to push some configuration files that are slightly different for each device before running an app. If the user wants to do the following,

copy local Alice.config to /sdcard/app.config on Alice device copy local Bob.config to /sdcard/app.config on Bob device copy local Carol.config to /sdcard/app.config on Carol device

then madb doesn't help much because the arguments should be slightly different.

It would be nice if this could be done in one line something like this:

madb exec push {{name}}.config /sdcard/app.config

The {{name}} would be a placeholder to be replaced by the actual device nickname on which the command is running.

Here are some potential keywords to provide:

yyoon commented 8 years ago

Done by 9a63baf