aquariumbio / pfish

Scripts for pulling/pushing protocols/libraries to/from Aquarium.
2 stars 1 forks source link

[Bug] Cannot switch configurations without changing default #43

Closed cashmonger closed 3 years ago

cashmonger commented 3 years ago

If you have "local" set as your default configuration, but you want to use your "production" configuration, you have to set "production" as the default. You should be able to change this on the fly using the "-n" flag without changing the default.

pfish pull -n production

dvnstrcklnd commented 3 years ago

I'd like to upvote this one. Having to change the default in order to push to a production server is really dangerous.

bjkeller commented 3 years ago

@cashmonger the name argument is there for all of the relevant commands, but needs to be passed into create_session when set.

I suggest removing the default on --name so that it is easier to check if it is set