A CLI that extracts fields you specify from any file you give.
Go to the releases and download any version you want in accordance to your machine.
For now, only JSON
and YAML
files are supported
datex [file] [flags]
[file]
- pass a file full path directly or just type a filename and the program will try to find it from the current dir you are in.[flags]
(optional)i, --indent [int]
- Specify the indent of a resulting file, positive integers are expected, default is 4
Here are the examples of running the program:
datex C:\Users\diddy\Documents\DataExtractor\config.yml -i 8
datex config.yml
The resulting file with all extracted data will be placed at the current directory you are, with extracted_
prepended to the file's name you passed.
So you get something like extracted_config.yaml
Type datex -h
to see all available options and basic program info.
DataExtractor follows good practices of security, but 100% security cannot be assured. DataExtractor is provided "as is" without any warranty. Use at your own risk.
This project is licensed under the Apache Software License 2.0.
See LICENSE for more information.
- golang - go The Go programming language. (BSD-3-Clause license)
- spf13 - cobra A Commander for modern Go CLI interactions. (Apache-2.0 license)
- charmbracelet - bubbletea A powerful little TUI framework 🏗. (MIT license)
- charmbracelet - lipgloss Style definitions for nice terminal layouts 👄. (MIT license)
- go-yaml - yaml YAML support for the Go language. (MIT license)