-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add default paths for config file
- Loading branch information
Showing
4 changed files
with
138 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
pub const CONFIG_FILE_NAME: &str = "red_oxide.config.json"; | ||
pub const PROJECT_NAME: &str = "red_oxide"; | ||
|
||
pub const CONFIG_PATH: &str = ".config"; | ||
|
||
pub const XDG_CONFIG_ENV: &str = "XDG_CONFIG_HOME"; | ||
|
||
pub const HOME_ENV: &str = "HOME"; | ||
|
||
pub const WINDOWS_APPDATA_ENV: &str = "APPDATA"; | ||
pub const WINDOWS_USERPROFILE_ENV: &str = "USERPROFILE"; | ||
pub const WINDOWS_HOMEDRIVE_ENV: &str = "HOMEDRIVE"; | ||
pub const WINDOWS_HOMEPATH_ENV: &str = "HOMEPATH"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pub mod config; | ||
mod constants; | ||
pub mod models; |