Skip to content

Commit

Permalink
Merge pull request #11 from eclecticiq/total_steps
Browse files Browse the repository at this point in the history
Total steps
  • Loading branch information
Phlogisto committed Dec 4, 2018
2 parents 517f141 + 991c7d8 commit 3fab5da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rundoc/__init__.py
@@ -1,7 +1,7 @@
"""
A command-line utility that runs code blocks from markdown files.
"""
__version__ = "0.3.19"
__version__ = "0.3.20"
__license__ = "BSD"
__year__ = "2017-2018"
__author__ = "Predrag Mandic"
Expand Down
4 changes: 2 additions & 2 deletions rundoc/commander.py
Expand Up @@ -202,8 +202,8 @@ def run(self,
ask>=3 or ask_for_prompt_once or self.step in breakpoint
tags = '[{}] '.format(self.doc_block.interpreter)
tags += ' '.join(self.doc_block.tags[1:])
prompt_text = "\n{}=== Step {} {}{}".format(
ansi.bold, self.step, tags, ansi.end)
prompt_text = "\n{}=== Step {}/{} {}{}".format(
ansi.bold, self.step, len(self.doc_blocks), tags, ansi.end)
print(prompt_text)
if not prompt_this_time:
print(self.doc_block)
Expand Down

0 comments on commit 3fab5da

Please sign in to comment.