klient

command module
v0.0.0-...-fa66ad8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: GPL-3.0 Imports: 20 Imported by: 0

README

Klient

Features

Klient can be used as a terminal client with colorful output for several databases .

  1. Colorful output
  2. Simple command - Resue [FORMULA...] which can be stored in $USER_HOMEDIR/.klient.toml
  3. More databases
    • kafka
    • mysql | pgsql
    • postgresql
    • clickhouse
    • redis

Installation

linux
$ sudo wget -O /usr/bin/klient https://github.com/lubit/klient/releases/download/0.0.1/klient.linux.amd64
macos
$ sudo wget -O /usr/bin/klient https://github.com/lubit/klient/releases/download/0.0.1/klient.mac

Usage

$ klient [driver] [commands] [FORMULA...]
Exmaple
$ klient kafka produce -B 'localhost:9092' -T test

kafka-produce

$ klient kafka consume  -B 'localhost:9092' -T test  -G test-consumer-group -u root -p 12345

kafka-consume

TIPS

Omit [FORMULA...] parameters which were stored in $USER_HOMEDIR/.klient.toml

$ klient kafka consume

kafka-consume-without-params

$ klient kafka status  -B 'localhost:9092' -T test  -G test-consumer-group

kafka-status

$ klient mysql -H localhost -P 3306 -u root -p 12345 -e 'select *  from user'

mysql


Reference Driver

kafka: github.com/Shopify/sarama && github.com/bsm/sarama-cluster
mysql: github.com/go-sql-driver/mysql
postgresql: github.com/lib/pq
clickhouse: github.com/kshvakov/clickhouse
redis: github.com/garyburd/redigo/redis

Authors

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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