Skip to content

Conversation

derekwheee
Copy link
Contributor

I ended up down kind of a weird road on this before coming back to reality. "Interchange" and the CLI itself are in separate files now. This is a result of thinking I needed to do something with commander that ended up being wrong. If you're not happy with this I can revert that portion.

However, I decided to commit it this way because it opens up the possibility of using interchange programmatically in the future. I tested as much as I could and everything seems fine.

@derekwheee
Copy link
Contributor Author

Bonus, check out this lovely --help

notbook at notbook in ~/git/nodebots-interchange on commander
$ interchange -h

  Usage: interchange [options] [command]


  Commands:

    list|l                          Lists all of the available firmwares
    ports|p [options]               Lists all of the attached boards and their ports
    read|r [options]                Read firware info from port
    install|i [options] [firmware]  Install specified firmware to board

  Options:

    -h, --help     output usage information
    -V, --version  output the version number


notbook at notbook in ~/git/nodebots-interchange on commander
$ interchange install -h

  Usage: install|i [options] [firmware]

  Install specified firmware to board

  Options:

    -h, --help               output usage information
    -a, --board <board>      Type of board/AVR
    -p, --port <port>        Serial port board is attached to
    -f, --firmata            Install firmata version of firmware
    -i, --address <address>  Specify I2C address

@ajfisher
Copy link
Member

Ooh nice one. Will check out your branch shortly and have a look at the code

On Wed, Nov 11, 2015, 12:55 Derek Wheelden notifications@github.com wrote:

Bonus, check out this lovely --help

notbook at notbook in ~/git/nodebots-interchange on commander
$ interchange -h

Usage: interchange [options] [command]

Commands:

list|l                          Lists all of the available firmwares
ports|p [options]               Lists all of the attached boards and their ports
read|r [options]                Read firware info from port
install|i [options] [firmware]  Test

Options:

-h, --help     output usage information
-V, --version  output the version number

notbook at notbook in ~/git/nodebots-interchange on commander
$ interchange install -h

Usage: install|i [options] [firmware]

Test

Options:

-h, --help               output usage information
-a, --board <board>      Type of board/AVR
-p, --port <port>        Serial port board is attached to
-f, --firmata            Install firmata version of firmware
-i, --address <address>  Specify I2C address


Reply to this email directly or view it on GitHub
#13 (comment)
.

bin/cli.js Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo - "firmware"

@ajfisher
Copy link
Member

Looks pretty good other than those little nits which were largely mine anyway ;P

After that's done I'll merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants