Add grep+sed+git-add+git-commit+git-push script #1

Closed
opened 2020-11-02 11:12:23 +00:00 by decentral1se · 2 comments
Owner

We need to re-write stuff a lot while we're churning the code with Abra. For example, we wanted to rename all password related env vars to be prefixed with SECRET_. With the clone_all.py we can get all the repos cloned out. Next is to rewrite stuff and push it back. Then you can rm -rf ~/.abra/apps and get a fresh clone.

Starting proposal:

  • grep -l -R FOOBAR * | xargs sed -i 's/FOOBAR/BARFOO/'
We need to re-write stuff a lot while we're churning the code with Abra. For example, we wanted to rename all password related env vars to be prefixed with `SECRET_`. With the `clone_all.py` we can get all the repos cloned out. Next is to rewrite stuff and push it back. Then you can `rm -rf ~/.abra/apps` and get a fresh clone. Starting proposal: - `grep -l -R FOOBAR * | xargs sed -i 's/FOOBAR/BARFOO/'`
Author
Owner

Wasn't really working but there is a little stab at it:

https://git.autonomic.zone/coop-cloud/gardening/src/branch/main/scripts/replace.sh

Wasn't really working but there is a little stab at it: > https://git.autonomic.zone/coop-cloud/gardening/src/branch/main/scripts/replace.sh
Author
Owner

Done!

Done!
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/gardening#1
No description provided.