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`.
|
2022-11-05 17:57:18 +00:00
|
|
|
# --notebook-dir is custom parsed, check that it handles both one and two arg forms
|
2022-01-10 13:28:14 +00:00
|
|
|
$ zk index -q --notebook-dir paths
|
2022-11-05 17:57:18 +00:00
|
|
|
$ zk index -q --notebook-dir=paths
|
2022-01-10 13:28:14 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|