-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleaned up readme * added another test for props * adds a simple example
- Loading branch information
Showing
8 changed files
with
122 additions
and
1 deletion.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 @@ | ||
To Run: | ||
|
||
```configamajig replace -c config.json -i input1.txt -o output.txt``` | ||
|
||
or with trace | ||
|
||
```configamajig replace -c config.json -i input1.txt -o output.txt -t trace.md``` |
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,33 @@ | ||
{ | ||
"configs": [ | ||
{ | ||
"path": "global.json", | ||
"mappings": [ | ||
{ | ||
"inPath": "globalAppConfigs", | ||
"toPath": "globals" | ||
}, | ||
{ | ||
"inPath": "deploymentConfigs", | ||
"toPath": "deploymentValues" | ||
} | ||
], | ||
"applyFile": "after" | ||
}, | ||
{ | ||
"path": "regional.json", | ||
"mappings": [ | ||
{ | ||
"inPath": "globalAppConfigs", | ||
"toPath": "globals" | ||
}, | ||
{ | ||
"inPath": "deploymentConfigs", | ||
"toPath": "deploymentValues" | ||
} | ||
], | ||
"applyFile": "later" | ||
} | ||
], | ||
"version": "1.0.0" | ||
} |
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,11 @@ | ||
{ | ||
"globalAppConfigs":{ | ||
"dbConfigs": "someGlobalConnectionString", | ||
"someAPIKey": "someAPIKey", | ||
"someOtherGlobalConfigs": "someOtherGlobalConfigs" | ||
}, | ||
"deploymentConfigs":{ | ||
"stage": "development", | ||
"someOtherConfigs": "someOtherConfigs" | ||
} | ||
} |
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 @@ | ||
global.dbConfigs: {{ .globals.dbConfigs }} | ||
|
||
deploymentValues.stage: {{ .deploymentValues.stage }} |
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,10 @@ | ||
{ | ||
"globalAppConfigs":{ | ||
"dbConfigs": "someRegionalConnectionString", | ||
"someAPIKey": "someAPIKey" | ||
}, | ||
"deploymentConfigs":{ | ||
"stage": "integration", | ||
"someOtherConfigs": "someOtherConfigs" | ||
} | ||
} |