Input file
September 26, 2020 ยท View on GitHub
You can use any text format as the input file, such as Markdown, reST, HTML, LaTeX, plain text. The only requirement is that the command lines and properly prefixed (see --prefix) and use the expected prompt identifier (see --prompt).
Informing multiple files as input is also supported.
Input file checks
No input file informed:
> ./doctest.fish
doctest.fish: Error: no test file informed
Input file not found:
> ./doctest.fish /404-foo-bar
doctest.fish: Error: cannot read input file: /404-foo-bar
Input file is a directory:
> ./doctest.fish /
doctest.fish: Error: input file is a directory: /