cli-chat

command
v0.0.0-...-231df5d Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 21 Imported by: 0

README

Open two CLI tools

In Alice's terminal

cd ~/go/src/github.com/stefanhans/cli-chat/cli-chat/

go build
./cli-chat alice

In Bob's terminal

cd ~/go/src/github.com/stefanhans/cli-chat/cli-chat/

./cli-chat alice

Start the chat interactively

Create your memberlist node

  • memberlistconfigure creates a memberlist configuration
  • memberlistcreate creates the memberlist specified by the configuration

Get, and possibly join, the bootstrap peers

  • bootstrapjoin joins calling peer to bootstrap peers

Join the memberlist

  • memberliststart starts broadcasting between the members
  • memberlistjoin joins bootstrap peers to memberlist

Join the chat and say hi

  • chatjoin start chat listener and join the chat
  • msg hi send a message to all chat members

See all available commands

  • <tab><tab> lists all commands using code completion
  • help or other not existing command shows commands and descriptions

Leave the cli-tool

  • quit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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