Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands to create event/events #1

Open
3 of 5 tasks
fghibellini opened this issue Feb 22, 2019 · 0 comments
Open
3 of 5 tasks

Add commands to create event/events #1

fghibellini opened this issue Feb 22, 2019 · 0 comments

Comments

@fghibellini
Copy link
Owner

fghibellini commented Feb 22, 2019

Ideally in the multiple event case we want to be able to stream a sequence of values into the program and on each parse perform a request to Event Store so that it works nicely with linux piping.

  • create single event passed as argument
  • create single event & read data from stdin
  • create multiple events from stdin
  • json vs binary data
  • add --interractive | -i flag

add-event -i behaviour

#!/usr/bin/env bash
TMPFILE="$(mktemp /tmp/event-store-event.XXXXXX)"
event-store-ctl send-event --output-template > "$TMPFILE"
$EDITOR "$TMPFILE"
event-store-ctl send-event < "$TMPFILE"
rm "$TMPFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant