zippy / ceptr

(a recomposable medium for distributed social computing) || (semantic self-describing protocol stacks)
http://ceptr.org
GNU General Public License v3.0
88 stars 17 forks source link

create shell/command line receptor #25

Closed zippy closed 8 years ago

zippy commented 8 years ago

This is a feature/use-case that requires integration of a bunch of issues.

We'll start with two commands: time & receptors, the first just gets the time from the clock receptor and sends a text representation to the stdout receptor, the second sends a text representation of the receptors to the stdout receptor kind of like unix ps

The intentions here are:

zippy commented 8 years ago

64c6012d adds the basic framework and spec for this feature. Most things still missing, but now we've got something to build on.

zippy commented 8 years ago

It turns out that we don't actually need replication (#26) to work, rather we need to get expectations/action cleanup #19 working, for the shell to accept multiple commands. This is because we implement it not as a code loop but as actions fired on incoming COMMANDs on the flux.

Actually, replication is used inside the stream-edge-receptor, which hands LINEs off to the shell receptor, so we did need it after all.

zippy commented 8 years ago

as of 94362e442b1 this works much better. clock receptor actually returns the current time which then gets sent to the std-out receptor, and we have a scaffold cheat in place for the receptors command too, and this all works in the stand alone ceptr executable!

this ticket will be marked finished and the remaining items broken out into their own tickets.