Skip to content

Commit cd1a56f

Browse files
committed
lsmagic command
1 parent da0239b commit cd1a56f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/context.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export default class Context {
4141
block: {},
4242
line: {
4343
load_ext: loadExt,
44+
lsmagic: (ctx, out, args, done) => {
45+
console.log('Available line magics:')
46+
console.log()
47+
Object.keys(this.magics.line).forEach(key => {
48+
console.log('%' + key)
49+
})
50+
done()
51+
},
4452
die: function () {
4553
fail
4654
}
@@ -261,10 +269,10 @@ export default class Context {
261269
const lineTasks = lineMagics.map(line => next =>
262270
this.lineMagic(line.slice(1), out, next))
263271

264-
console.log('series', lineTasks.length)
272+
// console.log('series', lineTasks.length)
265273
async.series(lineTasks, err => {
266274
if (err) return done(err)
267-
console.log('done', err)
275+
// console.log('done', err)
268276
return this.rawEvaluate(code, out, done)
269277
})
270278
}

0 commit comments

Comments
 (0)