csvtojson

command module
Version: v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

csvtojson

A simple command line utility to parse csv files and convert them to JSON/YML.

Status Checks

Installation

$ go get -u go.krishnaiyer.dev/csvtojson

There are also various binaries available for different machines on the releases page.

Usage

csvtojson [flags]

Flags:
  -c, --csv-file string                 input csv file name
  -d, --debug                           print detailed logs for errors
  -h, --help                            help for csvtojson
  -o, --out-file string                 output file name. Use yaml or json based on the required format.
      --values.allow-malformed          allow parsing malformed CSV
      --values.fill-empty-with string   value to fill empty cells with. --allow-malformed must be set for this to be effective
      --values.replace-with string      simple text find and replace. Usage --replace-with <search>,<replacement>
      --yaml                            marshal to yaml instead of json

License

The contents of this repository is licensed under the Apache 2.0 license. Please check the LICENSE file for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
pkg
config
Package config provides configuration functions.
Package config provides configuration functions.
csv
Package csv parses CSV files.
Package csv parses CSV files.
zephyrus
Package zephyrus provides commonly used logging functions by wrapping the uber-go/zap package.
Package zephyrus provides commonly used logging functions by wrapping the uber-go/zap package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL