-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Convert config files from HCL to TOML
Switch to using TOML format for the config files as the first step of rehauling the Config setup. TOML provides better viper support and is closer to the standard git config file format. HCL format is broken in viper and requires a small hack to convert double square brackets to single square brackets in the viper TOML file format. The test code extensively uses HCL and employs several viper HCL workarounds. The test code has been modified to remove HCL code and those workarounds. Before this change the ~/.config/lab.hcl contains "core" = { "host" = "https://gitlab.com" "token" = "abcdef12345" "user" = "prarit" } After this change the ~/.config/lab/lab.toml contains [core] host = "https://gitlab.com" token = "abcdef12345" user = "prarit" Also move the new config files into their own directories in ~/.config and the local .git. Convert config files from HCL to TOML and move them into their own ~/.config/lab and .git/lab/ directories. Signed-off-by: Prarit Bhargava <[email protected]>
- Loading branch information
Showing
11 changed files
with
114 additions
and
44 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
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
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
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
[core] | ||
host = "https://gitlab.com" | ||
token = "uDz6czYV412zK-xC5mUu" |