rocket-chat-client

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

rocket-chat-client

GoDoc Go Report Card

Usage

To use the Rocket.Chat client you have to configure the server URL, a user ID and a token. The user ID and a token can be created under https://<YOUR_ROCKET_CHAT_SERVER>/account/tokens

export RC_URL=https://your-rocket-chat-server.com
export RC_USER_ID=...
export RC_TOKEN=...

Then you can:

# list users
rocket-chat-client list user

# list channels
rocket-chat-client list channel

# send message
rocket-chat-client send "@username" "Hello World!"
rocket-chat-client send "#channel-name" "Hello World!"

With rocket-chat-client completion you can generate shell completions for Bash, ZSH, Fish and Powershell. Checkout rocket-chat-client completion --help for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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