Skip to content

v0.10.0

Choose a tag to compare

@dbosk dbosk released this 21 Sep 08:04
· 6 commits to main since this release
43940d1

Behaviour change

Output in interactive shell steps now wraps at the reader's terminal width instead of always at 80 columns (#30): the step shell's PTY takes the size of the real terminal and follows resizes.

  • Plain-string required_patterns are unaffected, because matching collapses all whitespace, line breaks included.
  • A regex pattern that matches several words of wrapped program output (argparse help, for instance) with a literal space can stop matching when the line breaks between those words. Use \s+ between words.
  • Scripted shells (run_scripted_shell) stay unsized, so recorded test transcripts do not change.

For hosts that embed the CLI

  • using-tutorials is now self-contained and can be completed in a host that mounts nothing else from pytorial (#27). It has 9 steps; the install step moved to the end of writing-tutorials.
  • The run summary names the command as the host mounted it, for example myhost tutorial review <id> (#31). No new parameter: it comes from the host's own parser.
  • add_typer_subcommand and add_argparse_subcommand keep their signatures.

In-progress runs of using-tutorials and writing-tutorials need --restart, since both lessons changed.

What's Changed

  • Make using-tutorials completable in an embedded host by @dbosk in #28
  • Give interactive step shells the size of the real terminal by @dbosk in #33
  • Name the host's command in the run summary by @dbosk in #34

Full Changelog: v0.9.0...v0.10.0