{ blah: 'blih', alert: 'bob' } { type: 'spell', name: 'fireball', args: {}, casting: [ { type: 'sh', args: [Object], shellCommands: [Object] } ] } { type: 'sh', args: { parallel: '2' }, shellCommands: [ 'echo Zap Boum', 'echo Zashhhh && sleep 1 && echo Crash', 'echo Fizz' ] } Zap Boum Zashhhh Fizz Crash Grrrrjjjjj grrrrrjjjjj grrrrjjjj flash bob blihblih bob blihblih This spell is not ready yet.
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
console.log( book.formula ) ;
console.log( book.spells.fireball ) ;
console.log( book.spells.fireball.casting[ 0 ] ) ;
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
book.cast( 'fireball' , done ) ;
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
book.cast( 'nova' , function( error ) {
expect( error ).to.be.ok() ;
done() ;
} ) ;
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
book.cast( 'blah' , done ) ;
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
book.cast( 'depend' , done ) ;