cldnt

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

README

cldnt

GoDoc Widget Build Status Go Report Card

Requirements

  • Internet connection
  • Go 1.12.x (for development)

Installation

Installation on Mac OSX
brew tap oleewere/repo
brew install cldnt
Installation on Linux

Using wget:

CLDNT_VERSION=0.2.0
wget -qO- "https://github.com/oleewere/cldnt/releases/download/v${CLDNT_VERSION}/cldnt_${CLDNT_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -zxv cldntl

Using curl:

CLDNT_VERSION=0.2.0
curl -L -s "https://github.com/oleewere/cldnt/releases/download/v${CLDNT_VERSION}/cldnt_${CLDNT_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -xzv cldnt

Build

Build locally:

make build

Or build in docker image:

docker build -t oleewere/cldnt:latest .

Usage

# if it is installed
cldnt --help
# if it is built locally
./cldnt --help

Run in docker container (if it has already built)

docker run --rm oleewere/cldnt:latest --help

Currently only airports command is supported:

# see available parameters
cldnt help airports
# using it:
cldnt airports
# note: if latitude and longitude is not provided, the app will try to calculate those details by the public IP
# of course you can provide those parameters
cldnt airports --longitude 19.255592 --latitude 47.436933 --rows 5

Start web server with UI:

# It will start a web application on port 7777, checkout "localhost:7777"
cldnt serve
# or with docker command:
docker run --rm -p 7777:7777 oleewere/cldnt:latest serve

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