Sign inSign up

zrrrzzt/difi-cli

By zrrrzzt

Updated over 7 years ago

Docker version of CLI for querying the hotell.difi.no API

Image
0

10K+

zrrrzzt/difi-cli repository overview

Build Status Coverage Status js-standard-style

difi-cli

CLI for querying the hotell.difi.no API.

Installation

$ npm install difi-cli -g

Usage

$ difi <dataset> --query=<query>

Optionally set return format. Can be csv, json, jsonp, xml or yaml (default)

$ difi <dataset> --query=<query> --format=<format>

To display help

$ difi --help

To display version

$ difi --version

Docker

To run this module as a service use the docker image.

Build

$ docker build -t difi-cli .

Run a container with arguments described in Usage. Use environment variables to specify input.

$ docker run --rm -e DATASET=<dataset> -e QUERY=<query> -e FORMAT=<format> difi-cli

This will spin up a container. Do the job. Shut it down and remove it.

License

MIT

Tag summary

Content type

Image

Digest

Size

32 MB

Last updated

over 7 years ago

docker pull zrrrzzt/difi-cli