-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for toml config #8
Conversation
@@ -59,38 +60,43 @@ Error: %s`, | |||
} | |||
|
|||
if latestVersionInDB.version > latestDBVersion { | |||
die(`Looks like you downgraded omm. You should either delete omm's | |||
return fmt.Errorf(`Looks like you downgraded omm. You should either delete omm's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Errorf(`Looks like you downgraded omm. You should either delete omm's | |
return errors.New(`Looks like you downgraded omm. You should either delete omm's |
You are not formating here
defaultConfigDir = ".config" | ||
defaultDataDir = ".local/share" | ||
defaultConfigDirWindows = "AppData/Roaming" | ||
defaultDataDirWindows = "AppData/Local" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good tip!
I'll change this.
Oh I posted my review after you merged. I started in 20 min ago 😒 |
@ccoVeille Thanks for the review :) |
Adds support for providing config via a TOML file.