insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.33k stars 314 forks source link

`gcalcli init` shouldn't prompt to "Ignore and refresh" after successful init #795

Closed dbarnett closed 1 month ago

dbarnett commented 1 month ago

The gcalcli init command has a confusing glitch where it sometimes asks you if you want to refresh auth again after completing the init flow:

Please visit this URL to authorize this application …
Successfully loaded credentials
Credentials already configured. Ignore and refresh? [N]o [y]es:

I think I messed something up so it doesn't properly distinguish pre-existing auth from newly-initialized auth. Should be easy enough to fix.