https://github.com/zweifisch/redact
rendering config files from templates
https://github.com/zweifisch/redact
Last synced: 7 days ago
JSON representation
rendering config files from templates
- Host: GitHub
- URL: https://github.com/zweifisch/redact
- Owner: zweifisch
- Created: 2012-12-08T03:45:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-06-29T12:33:22.000Z (about 11 years ago)
- Last Synced: 2025-10-20T09:50:49.698Z (9 months ago)
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# redact
rendering config files from templates
keeping sensible infomation, like passwords, out of config files, so they can
be keeped in version control system
install using pip
```sh
pip install redact
```
## usage
given a template `~/.muttrc.tpl`
```
passwd: #{mutt.passwd}
address: #{mutt.email}
```
render `~/.muttrc` interactively with redact
```
redact ~/.muttrc.tpl
mutt.password
> secret
mutt.email
> contact@redact.com
~/.muttrc updated
```
keep track of template file locations and save/load variables
```
redact -t ~/.redact -s ~/.secret ~/.muttrc.tpl
```
render a list of templates
```
redact -t ~/.redact -s ~/.secret
```