You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could also add a prompt for the user along side one of these options if no flag is provided? That way there is no default that can mess up the config.
I'm leaning towards the --update-config option for two reasons:
According to CLI Guidelines, tools shouldn't mutate user-facing files unless specified explicitly.
One possible use case for the tool install xyz is to install a tool, play with it locally and decide whether you actually want it or not. So you may not want to add it to the config by default but decide later.
The
install
command just installs the tool. It would be nice if it also updates the config, so the futuretool sync
calls would sync the tool.The behaviour should be following:
Alternative
Possible two behaviours:
--update-config
for theinstall
command and the default is to not update the config--no-update-config
flagI'm not sure which default is better here 🤔 Maybe the one that doesn't change the config? Or maybe people actually want this behaviour out-of-the-box?
The feature is inspired by this comment:
The text was updated successfully, but these errors were encountered: