Ask HN: Language to write interactive command line tutorials?

Is there a tool/language to write interactive command line tutorials such as Swirl: Learn R, in R. [0] but that work for different languages?

I'm thinking something like inform7 [1], but for authoring tutorials not Interactive Finction.

TIA

[0] http://swirlstats.com/ [1] https://en.wikipedia.org/wiki/Inform

This post does not have any comments yet