natsctl

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

natsctl

Go Report Card License CII Best Practices
The simplest CLI, but one of the most useful ever! If you ever wanted to use NATS client within your bash :D

Inspiration

My main inspiration was the kubectl command line interface, for controlling the Kubernetes cluster. So I decided to build my own for my favorite message system! NATS is a Go based messaging system, responsible for one of my best messaging experiences! It's Pretty simple, easy to configure, and the only fault was that there is no way that I can find some metrics inside my terminal, and I DON'T LIKE WEB INTERFACES SORRY!. Then, within a talk on the Nerdzão Community, I'll build this tool according to what I feel is cool, but if you want to help me or put some feature that you consider cool, please open an issue and lets discuss this!

Building from source

Today the only way to build natsctl is compiling the source code for your platform! So, you just have to grab the source code, and follow this steps, and have go with version equal or higher to v1.10:

  • git clone https://github.com/Horaddrim/natsctl ~/.natsctl
  • cd ~/.natsctl
  • go build .

And after that you will have a functional binary inside the ~/.natsctl folder, named natsctl. If you want to access the binary everywhere else in your environment, just add the following line to your shell init script, (e.g .bashrc or .zshrc)

  • export PATH=$PATH:$HOME/.natsctl

And you're done! 💖 you can use the command natsctl from any bash or ZSH instance!

Available commands

Today we have only the status command, wich you can run something like this:

  • natsctl status --host <You NATS server IP or address here>

OBS: The host flag is required

TO DO
  • Add the documentation for building the tool from source
  • Add documentation for downloading a pre-compiled version
  • Add the ISSUE TEMPLATE
  • Think about support Windows versions
  • Upgrade the code documentation too
  • Improve the help flag and command description

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