repository
0.0.0-20220428125138-f3738cde0772
Repository: https://github.com/thorin0ak/hermes-cli.git
Documentation: pkg.go.dev
# README
HERMES-CLI
A simple CLI tool to publish events to a Mercure Hub, and optionally subscribe to receive them.
⚡️ Getting started
Download the binaries corresponding to your OS here.
Provide a Yaml file containing the different Mercure configurations per environment you wish to interact with. The project comes with a sample config file:
{
"environments": [
{
"name": "localhost",
"url": "https://localhost/.well-known",
"jwtSecretKey": "!ChangeMe!"
}
]
}
⚙️ Commands & Options
Option | Description | Type | Default | Required? |
---|---|---|---|---|
-h | Display usage. | No | ||
-c | Load the Mercure Hub configuration per environment. | path | . | No |
-n | Number of events to publish to the Mercure Hub. | int | 5 | No |
-t | Topic URI used by Mercure to manage pub/sub. | string | sse://pxc.dev/123456/test_mercure_events | No |
-p | Only publish events, no client subscription. | bool | false | No |
TODO
- publish binaries to allow installation with
brew
- encrypt secrets
- generate different types of mock payload
-
sub
should be randomly generated, to ensure no collisions