From 7fbedf684e9e53bf1ede0fd5efbb956385a1a5dd Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 3 Apr 2024 23:51:13 +0300 Subject: [PATCH] cli: read config only when use the make command --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index e3c547c..57ff5db 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -136,10 +136,10 @@ pub fn run() -> Result<(), Box> { } else { current_dir()? }; - let config = read_config(¤t_dir)?; match args.command { Command::Make(_make_args) => { + let config = read_config(¤t_dir)?; let mut make_files: HashMap = HashMap::new(); if let Some(cfg) = config.direnv {