Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fameless4elll/cli-file-converter
This is a command-line interface (CLI) tool for converting files
https://github.com/fameless4elll/cli-file-converter
Last synced: 27 days ago
JSON representation
This is a command-line interface (CLI) tool for converting files
- Host: GitHub
- URL: https://github.com/fameless4elll/cli-file-converter
- Owner: Fameless4ellL
- Created: 2023-02-25T09:25:18.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T15:57:19.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T15:47:50.781Z (7 months ago)
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CLI File Converter
![ci](https://github.com/Fameless4ellL/cli-file-converter/actions/workflows/ci.yml/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/Fameless4ellL/cli-file-converter)](https://goreportcard.com/report/github.com/Fameless4ellL/cli-file-converter)This is a command-line interface (CLI) tool for converting files between CSV and JSON formats. The tool is written in Go and uses the `cobra` and `viper` packages for command-line parsing and configuration management.
## Installation
To use the CLI file converter, you'll need to have Go installed on your machine. You can then install the tool using the following command:
`go install github.com/Fameless4ellL/cli-file-converter`
## Usage
To convert a file from CSV to JSON, use the `convert` command:
`cli-file-converter convert -i input.csv -o output.json`
By default, the converter assumes that CSV files use a comma (`,`) as the delimiter. You can specify a different delimiter using the `-d` or `--delimiter` flag:
`cli-file-converter convert -i input.csv -o output.json -d ";"`
For a full list of available commands and options, use the `--help` flag:
`cli-file-converter convert --help`