The book_dir command is used to set the path to the directory containing the book when book reading or book converting. The book directory should be relative to the working directory.

require "cw"

cw do
  book_dir "books"
  book_name "book_to_read.txt"
  wpm 18
  ewpm 12
  read_book(sentences: 2)
end

The book_dir command may be used in a .cw_config configuration file to set its value globally to all tests.

# .cw_config

wpm            = 18
book_name      = book_to_read.txt
book_dir       = books
play_command   = /usr/bin/afplay
success_colour = green
fail_colour    = orange
list_colour    = cyan
Tags: commands