pub_just/search_config.rs
1use super::*;
2
3/// Controls how `just` will search for the justfile.
4#[derive(Debug, PartialEq)]
5pub enum SearchConfig {
6 /// Recursively search for the justfile upwards from the invocation directory
7 /// to the root, setting the working directory to the directory in which the
8 /// justfile is found.
9 FromInvocationDirectory,
10 /// As in `Invocation`, but start from `search_directory`.
11 FromSearchDirectory { search_directory: PathBuf },
12 /// Search for global justfile
13 GlobalJustfile,
14 /// Use user-specified justfile, with the working directory set to the
15 /// directory that contains it.
16 WithJustfile { justfile: PathBuf },
17 /// Use user-specified justfile and working directory.
18 WithJustfileAndWorkingDirectory {
19 justfile: PathBuf,
20 working_directory: PathBuf,
21 },
22}