Categorygithub.com/Thorin0ak/hermes-cli
repository
0.0.0-20220428125138-f3738cde0772
Repository: https://github.com/thorin0ak/hermes-cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Maintainability License: MIT codecov

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!"
    }
  ]
}

Recording of terminal demo

⚙️ Commands & Options

OptionDescriptionTypeDefaultRequired?
-hDisplay usage.No
-cLoad the Mercure Hub configuration per environment.path.No
-nNumber of events to publish to the Mercure Hub.int5No
-tTopic URI used by Mercure to manage pub/sub.stringsse://pxc.dev/123456/test_mercure_eventsNo
-pOnly publish events, no client subscription.boolfalseNo

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