Open sjmcdowall opened 8 years ago
thanks @sjmcdowall for pointing this out. We will update the current getting started to be correct. As @AdrianRossouw said we are looking at improving our sample code so please bear with us.
+1 for updating the sample-code
It's kind of hard to understand the actual implementation when the docs are not that precise. I'm currently trying to learn seneca using http://senecajs.org/get-started/
. Maybe we can take this a little further and create a "ramp-up" for seneca? Definitely looking forward to using it! :)
In fact, it barely produces output at all .. here is what I see when I run it :
`sjm:getting-started/ (master*) $ cat math-tree.js [9:48:31] // run command: // $ node math-tree.js --seneca.print.tree
require('seneca')() .use('math') sjm:getting-started/ (master*) $ node math-tree.js --seneca.print.tree [9:49:30] 2016-04-22T13:49:43.216Z etjghy1k7exo/1461332983194/62586/- INFO hello Seneca/2.0.0/etjghy1k7exo/1461332983194/62586/- Seneca action patterns for instance: etjghy1k7exo/1461332983194/62586/- `
Not anything like what the sample documentation indicates we should see
`$ node math-tree.js --seneca.print.tree 2016 ... INFO hello ... Seneca action patterns for instance: 9vjqzroin2k4/1436455291148/78025/- ├─┬ cmd:sum │ └─┬ role:math │ └── # math, (s1a28), │ # math, (sw9ew), sum └─┬ cmd:product └─┬ role:math └── # math, (sxti2),
math, (b8gcw), product`