From 14aeffc1ad7d66881ac259436981b945006c0aaa Mon Sep 17 00:00:00 2001 From: Mike Tintes Date: Sat, 14 Sep 2024 22:42:55 -0500 Subject: [PATCH] Update README.md --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 073f056..b4a4cd2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ # configamajig -for dropping data into any project consistently + +You know when you have 20 apps and they all are basically set up the same way, but not 100% the same? This is for that problem. + +Configamajig will allow you to slurp in a bunch of yaml/json configs, then mix and match them and finally apply them to a real config file. + +Real life use case: +Helm uses value.yaml files, but you have to deploy your app to multiple environments. Pretty simple, just keep a seperate copy for each env right? No multiply that by X apps. Suddenly the problem becomes much trickier to manage. You can use configamajig to instead keep 1 file for each app and template it out each env. This also makes big changes much easier! All your apps have to switch from one url to another for an api? Cool, change it once at a global level and everyapp gets it. + +Configamajig will also let you remap files into other properties. Want to dump multiple files under the same reference variable? No problem, just use mappings. + +You need to sometimes use one value vs another in an env depending on another defined value? Or maybe you want to switch a bunch to values at once? Great! You can use go templating logic and do that too. + +Confused why something doesn't seem to be template like you expect? configamajig has full property tracing so you can see which file changed what super easy! + +## Commands + +### Replace: +Feed in an template file + a config and out comes a fully filled out file + +```configamajig replace -c -i -o ```