evently-cloud / cli

Evently Command-Line Interface
Apache License 2.0
1 stars 0 forks source link

Create a `registry` command to manage the Event registry #1

Closed mattbishop closed 1 year ago

mattbishop commented 1 year ago

This command manages the event registry for a ledger. With it, one can add, list and remove event types.

It drives Evently's /registry API entry point.

evert commented 1 year ago

Looking into the API a bit, this is what I'm thinking for the CLI, let me know what you think:

Creating a new event (long and short forms)

evently registry:new --entity foo --event bar
evently registry:new -e foo -n bar 

(I picked -n because they both start with an e and -n was the closest to name. We can also leave out the short option, or come up with something different. Most important is that we're consistent)

mattbishop commented 1 year ago

I would switch it. -e for event, -n for entity name.