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
Currently .wegorc defaults to $HOME/.wegorc in all systems. I'm proposing this logic for searching/creating the config file:
$WEGORC takes the highest precedence.
If $WEGORC is not set, try to open the config file from os.UserConfigDir()/wego/wegorc (can adjust the name, but the point is it is stored inside os.UserConfigDir)
If the config file is not found, fallback try to open the config file from $HOME/.wegorc for backward compatibility
If still now found, generate the config file
in $WEGORC if it is set
else, generate the file in os.UserConfigDir()/wego/wegorc
The text was updated successfully, but these errors were encountered:
Related with #116
os.UserConfigDir() docs:
Currently .wegorc defaults to $HOME/.wegorc in all systems. I'm proposing this logic for searching/creating the config file:
$WEGORC
takes the highest precedence.$WEGORC
is not set, try to open the config file fromos.UserConfigDir()/wego/wegorc
(can adjust the name, but the point is it is stored inside os.UserConfigDir)$HOME/.wegorc
for backward compatibility$WEGORC
if it is setos.UserConfigDir()/wego/wegorc
The text was updated successfully, but these errors were encountered: