Skip to content

vasyahuyasa/stancli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stancli

Utility for send arbitrary data to nats streaming server from command-line.

Packages

stancli license Scc Count Badge

Installation

$ go get -u github.com/vasyahuyasa/stancli

Command-Line Options

Usage: stancli [OPTIONS] [FILE]

Send data to Nats streaming server.
With no FILE, or when FILE is -, read standard input.

Options:
  -client_id string
        Client ID (default "stan_cli")
  -cluster string
        Cluster ID (default "nats")
  -help
        This help text
  -subject string
        Subject (default "default")
  -url string
        NATS server url (default "nats://client:123456@localhost:4222")

Example usage

$ cat example/changeEmployee.txt | stancli -subject employees