Bug 10579 - create the devauto command line interface
Summary: create the devauto command line interface
Status: RESOLVED OBSOLETE
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.4
Assignee: Plauchu Edwin
QA Contact: Jair Gonzalez
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-11-01 22:37 UTC by Benjamin Esquivel
Modified: 2017-06-02 19:41 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Esquivel 2016-11-01 22:37:54 UTC
Create a command line interface for the devauto module that is able to issue commands and control the registered automation tools in the same way that the python module does.

This proposal is just for adding a CLI interpreter that wires the module options already there.

The proposed usage would be:

$ devauto <command> [options]

Where command is one of the automation tools in the list. As of now, 3 groups of tools have been created: remote power switch(rps), USB multiplexer(usbmux) and keyboard emulator(kbemu).

Taking the rps for creating an example, turning switch 3 on would be:

$ devauto rps --turn-on 3

Selecting input 8 of the USB Muxer would be:

$ devauto usbmux --select 8

adding a new device into a family and selecting it as default would be:

$ devauto --add-device usbkm232 --type kbemu --set-default

Take into account that the devauto module has already the submodules developed and the submodules already have the options in place. This CLI is for wiring them to the shell call.

One other consideration is that the cli has to use a parsing class that new module families are able to extend upon, as a way to provide extensibility.
Comment 1 Benjamin Esquivel 2016-12-20 17:37:42 UTC
Lowering the importance since bug 10604 effort helps bug 9389 to have an autobuilder interface instead. Command line users can automate this calling through a python script with devauto.<module> calls.
Comment 2 Leonardo Sandoval Gonzalez 2017-06-02 19:41:39 UTC
Substituted by DAFT.