Skip to content

Conversation

@bradleyprice
Copy link
Owner

This will pass all STATE records to stdout.

The command could now be:

tap | target >> state.json

And the resulting state file would look something like this:

{ "users": 1 }
{ "users": 2 }

With this approach, if the end user only cares about the latest
STATE record, they can manually handle updating their state file:

tail -1 state.json > state.json.tmp && mv state.json.tmp state.json

This will pass all `STATE` records to stdout.

The command could now be:

`tap | target >> state.json`

And the resulting state file would look something like this:

```
{ "users": 1 }
{ "users": 2 }
```

With this approach, if the end user only cares about the latest
`STATE` record, they can manually handle updating their state file:

`tail -1 state.json > state.json.tmp && mv state.json.tmp state.json`
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

Successfully merging this pull request may close these issues.

2 participants