toitware / public

Issue tracking for the Toit IoT platform, the Toit language, and the Toit APIs.
8 stars 0 forks source link

[cli] Allow device (and other settings) to be specified using environment variables #35

Closed ptxmac closed 2 years ago

ptxmac commented 2 years ago

Is your feature request related to a problem? Please describe. When working on multiple projects, I often have different hardware setups for each, and deployment needs to be targeted to a specific device. Every time I switch I have to use toit device use <device> (or add --device to deploy).

Describe the solution you'd like I'm a big fan of direnv which allows me to have an environment based on which directory I'm in. If the device was exposed as an environment variable (e.g. TOIT_DEVICE) I could keep that config local to a project directory, and not have to worry about deploying the right code to the right device

ptxmac commented 2 years ago

Does this mean it's getting implemented?

jstroem commented 2 years ago

Yes, its almost there.

kasperl commented 2 years ago

Fixed.