loreanvictor / tyfon

typed functions over network
https://loreanvictor.github.io/tyfon
MIT License
37 stars 4 forks source link

preserve env of an SDK unless explicitly stated #7

Closed loreanvictor closed 3 years ago

loreanvictor commented 3 years ago

When installing an SDK for the first time, the environment can be specified:

tyfon i localhost:8000 --env dev

Currently, for subsequent updates, the same command must be typed in again. not providing the env would change the environment to "all":

tyfon i localhost:8000  # WARN: this switches environment to "all"

However, this gets pretty repetitive. Instead, lets check if the SDK for given URL is already installed, use the same environment unless the environment is explicitly specified.

tyfon i localhost:8000             # environment is preserved to what was specified during first install
tyfon i localhost:8000 --env all   # environment is updated