An open API service indexing awesome lists of open source software.

https://github.com/cablehead/x

CLI swiss army knife
https://github.com/cablehead/x

Last synced: 10 months ago
JSON representation

CLI swiss army knife

Awesome Lists containing this project

README

          

## Snippets

```
x stream -p 7999 merge | x stream -p 8080 http | x log ./http write
```

## Tentative Usage

```
$ x stream broadcast
$ x stream split // TBD
$ x stream merge // currently tcp / merge
$ x stream http // TBD

is tcp:<[host:]port> or unix: // TBD

$ x log ./path write
$ x log ./path read

$ x exec -- ...
```

## Todo

### x log - read

- assert cursor is at a message boundary
- assert cursor isn't passed end of stream
- add utilities to help track cursor:
- at least once, convenience to save the cursor while consuming stdout
- at most once, convenience to run a command, and only advance if the command is successful

### x stream - http

- [ ] log server startup

## To test

### x stream

- [ ] human friendly message when unable to bind to desired port
- [ ] `x --port 2000 merge | x --port 2001 spread` works OK

### x stream - http

- [ ] response isn't valid JSON
- [ ] `request_id` isn't pending
- [ ] success
- [ ] should see log response for each of the above