wendlers / mpfshell

A simple shell based file explorer for ESP8266 Micropython based devices ⛺
MIT License
396 stars 84 forks source link

Request: command line argument to open board directly #34

Closed fstengel closed 7 years ago

fstengel commented 7 years ago

Being a lazy person :sweat_smile: I wonder if it would not be possible to use mpfshellas follows:

mpfshell --open tty.SLAB_USBtoUART

or (even quicker)

mpfshell tty.SLAB_USBtoUART

instead of:

mpfshell
mpfs [/]> open tty.SLAB_USBtoUART

That way, one could use the shell's history to connect to the board: I tend to forget what tty.* my board is connected to... :flushed:

fstengel commented 7 years ago

See relevant pull request (#35)...

ulno commented 7 years ago

Why don't you just do: mpfshell -c "open tty.SLAB_USBtoUART"

fstengel commented 7 years ago

Indeed. However, being lazy, mpfshell -c "open ..." seems a bit less efficient than mpfshell ... Furthermore, I don't quite see the point in not opening the connection to the board as soon as one interactively uses mpfshell.

ulno commented 7 years ago

+1 for using open anyway always as first command -> maybe specifying only one parameter should directly connect to that

Though, maybe this becomes strange when you deal with several boards in one mpfshell script.

fstengel commented 7 years ago

Very good point. Up until now, I would have thought that to access more than one board one would have to open them using one instance of mpfshell per board.

wendlers commented 7 years ago

Feature was added by push request.