Code Monkey home page Code Monkey logo

adbons's Introduction

adbons's People

Contributors

dbaelz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

matrixy chokkarg

adbons's Issues

Add some tests

At the moment there are no tests in adbons. This is a pity and should be fixed soon with some basic tests for the main functionality. For information how to test a Click application see http://click.pocoo.org/6/testing/.

Improve device selection order

Actual:

  1. Evaluate options (device id or index)
  2. Read local config
  3. Read global config
  4. If none of the above selects a device, then the adb command is executed without an id

Improvements:

  • When the device from the config isn't attached and it's unambiguous (only one attached) then execute the command on this device
  • Show a prompt when no device is selected, but devices are attached

Add debug/verbose mode

Add an mode for debug/verbose information. This mode should be activated by an flag (e.g. -v/--verbose) and use click.echo().

Information to print

  • Print the executed adb command
  • Print the config file when read/saved
  • Optional: Print the executed Click command and all parameters

Select and set a device by its index

Currently a device is identified with its device id. It should be possible to select a device due the index in the device list instead of the device id.

Incorrect output when executing `adbons devices`

In some cases, the output of adbons devices is incorrect.

Steps to reproduce:

  • Kill the adb server on the device (adb kill-server)
  • Execute adbons devices

Result

Additional output of adb is listed as devices
index -> 0 id -> * description -> daemon not running. starting it now at tcp:5037 *
index -> 1 id -> * description -> daemon started successfully *

Show device information

The device properties provide several interesting information about a device. This information should be listed with a command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.