Skip to content

isabella232/rpc-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpc(1) ⋅ a simple RPC CLI.

Features

  • Interactive mode
  • Consumes input from stdin
  • Nice UX (rpc :3000 sum [2,2])
  • HTTP / TCP (rpc http://localhost:3000)

Installation

$ go get github.com/segmentio/rpc-cli/cmd/rpc

Codecs

  • jsonrpc

Usage

$ rpc :3000
:3000> Service.Echo foo=baz
{
  foo: "baz"
}
:3000> Service.Sum [2,2]
4
$ echo '{"name":"{{ name }}"}' | phony | rpc :3000 Service.Echo
{
  "name": "Dyan Patterson"
}
....
$ rpc :3000 Service.Echo foo=baz
{
  "foo": "baz"
}
$ rpc :3000 Service.Sum [2,2]
4

License

MIT

About

Simple RPC CLI

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 86.2%
  • Makefile 13.8%