legs-client

command module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

README

legs-client

legs-client provides the cli command tool and client daemon for legs product.

Installation

Please execute below command. install.sh downloads client tool to current directory.

$ curl --silent https://raw.githubusercontent.com/iij/legs-client/master/install.sh | sh

After installation, you can show version info by version command.

$ ./legsc version

And if you need, copy tool binary to /usr/local/bin

$ sudo cp ./legsc /usr/local/bin/legsc

Basic Usage

# show help
$ ./legsc

# set secret key
$ ./legsc secret <your secret key>

# export config file with all current/default values
$ ./legsc export

# specify config file path
$ ./legsc -c path/to/config.yml secret <your secret key>

# start client in foreground
$ ./legsc start -f

# start client in background
$ ./legsc start

# stop client
$ ./legsc stop

# send data to server
$ ./legsc send routing/name '{"value": 1}'

Development

# get go libraries which use in project.
$ make setup

# dep ensure
$ make dep

# start daemon with localconfig and tail log file.
$ make run

# stop daemon
$ make stop

# format by goimports
$ make fmt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cache/mock
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.
log

Jump to

Keyboard shortcuts

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