cli: read config only when use the make command
This commit is contained in:
parent
bba79b915b
commit
7fbedf684e
1 changed files with 1 additions and 1 deletions
|
@ -136,10 +136,10 @@ pub fn run() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
} else {
|
} else {
|
||||||
current_dir()?
|
current_dir()?
|
||||||
};
|
};
|
||||||
let config = read_config(¤t_dir)?;
|
|
||||||
|
|
||||||
match args.command {
|
match args.command {
|
||||||
Command::Make(_make_args) => {
|
Command::Make(_make_args) => {
|
||||||
|
let config = read_config(¤t_dir)?;
|
||||||
let mut make_files: HashMap<String, String> = HashMap::new();
|
let mut make_files: HashMap<String, String> = HashMap::new();
|
||||||
|
|
||||||
if let Some(cfg) = config.direnv {
|
if let Some(cfg) = config.direnv {
|
||||||
|
|
Loading…
Reference in a new issue