redshirt-cli-wrapper

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

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 1 Imported by: 0

README

riker cli-wrapper

Unsupported

A wrapper for converting any app into a Redshirt bot

The riker cli-wrapper provides a method for making any command line app or script accessible as a ChatOps bot via the Riker bot framework.

The wrapper connects to an instance of Riker, registers a command namespace and a list of authorized users or groups, and then executes a command with arguments provided by the chat user.

In Riker terminology this is a 'redshirt', or a "micro bot" that implements some specific functionality.

Testing

To test with the riker terminal mode you must use the --debug option, then you do not specify a ca cert or riker certificate as terminal mode does not support TLS

Usage

Example "echo server":

	cli-wrapper \
		-addr riker:6000 \
		-cert echo.pem \
		-namespace "echo" \
		-description="echo server" \
		--groups "infra" \
		-usage "echo <msg>: replies with <msg>" \
		-command "/bin/echo"

TODO: document the env vars, since this might be more common way to exec in kube?

TODO: example deploy to kubernetes (yaml ..)

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