Bug 10579

Summary: create the devauto command line interface
Product: [QA/Testing] Build Testing Reporter: Benjamin Esquivel <benjamin.esquivel>
Component: generalAssignee: Plauchu Edwin <edwin.plauchu.camacho>
Status: RESOLVED OBSOLETE QA Contact: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia>
Severity: enhancement    
Priority: Medium CC: juan.m.cruz.alcaraz, leonardo.sandoval.gonzalez, tim.orling
Version: 2.2   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.