<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10579</bug_id>
          
          <creation_ts>2016-11-01 22:37:54 +0000</creation_ts>
          <short_desc>create the devauto command line interface</short_desc>
          <delta_ts>2017-06-02 19:41:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Plauchu Edwin">edwin.plauchu.camacho</assigned_to>
          <cc>juan.m.cruz.alcaraz</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>tim.orling</cc>
          
          <qa_contact name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67843</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-01 22:37:54 +0000</bug_when>
    <thetext>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 &lt;command&gt; [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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69238</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-12-20 17:37:42 +0000</bug_when>
    <thetext>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.&lt;module&gt; calls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73656</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-02 19:41:39 +0000</bug_when>
    <thetext>Substituted by DAFT.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>