https://github.com/bobvanderlinden/dadit
https://github.com/bobvanderlinden/dadit
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bobvanderlinden/dadit
- Owner: bobvanderlinden
- Created: 2024-04-04T20:59:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-08T19:43:47.000Z (about 1 year ago)
- Last Synced: 2025-02-10T04:41:35.240Z (3 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dadit
A CLI tool to manipulate structured files, like YAML.
The goal is to keep the structure, formatting and comments intact and only make changes to those parts of the file that needs changing.
## Usage
Consider the following file `data.yaml`:
```yaml
a: hello
b: | # This is an explanation.
These
are
multiple
lines
```The file can be transformed using:
```console
$ dadit patch --format yaml --replace /b '"world"' data.yaml
a: hello
b: world # This is an explanation.
```