Skip to content

Optionally use stdin and stdout for validate, describe, and convert commands#79

Merged
tschaub merged 1 commit intomainfrom
command-io
Sep 26, 2023
Merged

Optionally use stdin and stdout for validate, describe, and convert commands#79
tschaub merged 1 commit intomainfrom
command-io

Conversation

@tschaub
Copy link
Copy Markdown
Member

@tschaub tschaub commented Sep 25, 2023

This makes it so the commands optionally read from stdin and write to stdout.

Examples:

# validate geoparquet from stdin
cat example.parquet | gpq validate

# describe geoparquet from stdin
cat example.parquet | gpq describe

# convert geoparquet from stdin to geojson stdout
cat example.parquet | gpq convert --from geoparquet --to geojson

# convert geojson to geoparquet stdout
gpq convert example.geojson --to geoparquet

Fixes #78.

@bdon
Copy link
Copy Markdown

bdon commented Sep 26, 2023

Tested locally, LGTM

@tschaub tschaub merged commit b1b08b5 into main Sep 26, 2023
@tschaub tschaub deleted the command-io branch September 26, 2023 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for convert to stdout

2 participants