zk/tests/flag-notebook-dir.tesh

21 lines
515 B
Plaintext
Raw Normal View History

2022-01-10 13:28:14 +00:00
# No notebook found in the current directory.
1$ zk index -q
2>zk: error: failed to open notebook: no notebook found in {{working-dir}} or a parent directory
# Provide the notebook directory with `--notebook-dir`.
$ zk index -q --notebook-dir paths
# Provide the notebook directory with the `ZK_NOTEBOOK_DIR` env variable.
$ ZK_NOTEBOOK_DIR={{working-dir}}/paths zk index -q
$ cd paths
# Notebook found in the current directory.
$ zk index -q
$ cd brown
# Notebook found in a parent directory.
$ zk index -q