Recursively import presets from provided directory (#33)

Allow a directory to be passed as a preset, in which case all files
inside the directory (recursively) are treated as presets, loaded in
lexicographical order.

This allows one to compose a system by mixing in different presets, and
easily change their order of execution.
This commit is contained in:
James McMurray
2020-03-21 06:16:15 +01:00
committed by GitHub
parent 6624f05d1e
commit 1f5b28c065
3 changed files with 71 additions and 15 deletions

View File

@@ -37,7 +37,7 @@ pub struct CreateCommand {
#[structopt(parse(from_os_str))]
pub path: Option<PathBuf>,
/// Additional pacakges to install
/// Additional packages to install
#[structopt(short = "p", long = "extra-packages", value_name = "package")]
pub extra_packages: Vec<String>,