datbox

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 2 Imported by: 0

README

datbox

GitHub GitHub go.mod Go version GitHub Workflow Status

Převádí Otevřená data ze seznamu Datových schránek z XML na jiné formáty

Instalace

go install github.com/czechbol/datbox@latest

Použití

❯ datbox -h
Transforms XML data from https://www.mojedatovaschranka.cz/sds/welcome?part=opendata to other formats

Drops optional parameters when unused to save on disk space.

It can also read from the STDIN stream so you can pipe data to into it.

Usage:
  datbox <path/to/file.xml> [flags]

Flags:
  -f, --format string        Output format. Allows: "json","yaml","xml" (default "json")
  -h, --help                 help for datbox
  -o, --output-file string   Output file. Otherwise the results will be printed to stdout.

❯ datbox -f json data.xml -o output.json


❯ datbox -f yaml data.xml > output.yaml


❯ cat data.xml | datbox -f json -o output.json


❯ cat data.xml | datbox -f yaml > output.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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