Skip to content

Conversation

@tphoney
Copy link
Member

@tphoney tphoney commented Dec 3, 2024

re #687

image

@tphoney tphoney force-pushed the improve_token_file branch from 9af045b to 1712631 Compare December 3, 2024 13:37
@tphoney tphoney force-pushed the improve_token_file branch from 1712631 to 79ec2af Compare December 3, 2024 16:14
@tphoney tphoney marked this pull request as ready for review December 3, 2024 17:49
Copy link
Member

@dylanratcliffe dylanratcliffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just asking for changes around the "error" message. Having the tests are great

@tphoney tphoney force-pushed the improve_token_file branch from fff8546 to ee7bef6 Compare December 4, 2024 09:37
@tphoney
Copy link
Member Author

tphoney commented Dec 4, 2024

Using a local token, and what app is being used

image

Bad token example

image

Notifying a user we have saved a token, after auth

image

@dylanratcliffe @DavidS-ovm

@tphoney tphoney force-pushed the improve_token_file branch 2 times, most recently from 699adf9 to 4348a01 Compare December 4, 2024 10:06
@dylanratcliffe
Copy link
Member

@tphoney What does it look like when there is no token file at all?

@tphoney
Copy link
Member Author

tphoney commented Dec 4, 2024

@tphoney What does it look like when there is no token file at all?

no token file exists

image

@dylanratcliffe
Copy link
Member

@tphoney Would you mind suppressing that particular error? I don't think it adds any value and I don't want to muddy the first experience, the rest is very good

@tphoney tphoney force-pushed the improve_token_file branch from 4348a01 to 7e3f9e6 Compare December 4, 2024 10:29
@tphoney tphoney force-pushed the improve_token_file branch from 7e3f9e6 to 4edeb60 Compare December 4, 2024 10:39
@tphoney
Copy link
Member Author

tphoney commented Dec 4, 2024

@dylanratcliffe @DavidS-ovm os.stat for a missing token file is now ignored.

if app == "" {
log.Fatal("no app specified, please use --app or set OVM_APP")
}
viper.Set("app", app)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat

@tphoney tphoney merged commit e20040b into main Dec 5, 2024
10 checks passed
@tphoney tphoney deleted the improve_token_file branch December 5, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants