You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zk/tests/flag-notebook-dir.tesh

23 lines
634 B
Plaintext

# 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`.
# --notebook-dir is custom parsed, check that it handles both one and two arg forms
$ zk index -q --notebook-dir paths
$ 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