Skip to content

Commit

Permalink
Add more build script debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdawson committed Mar 14, 2024
1 parent 6037b01 commit c6e73d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ fn main() {
}
};

dbg!(&completion_dirs);

for target_dir in completion_dirs {
generate_completions(target_dir.as_os_str());
}
Expand All @@ -44,13 +46,13 @@ fn generate_completions(target_dir: &OsStr) {
Shell::Zsh,
] {
if let Err(err) = clap_complete::generate_to(*shell, &mut cmd, bin_name, target_dir) {
panic!("failed to generate completions for {:?}: {:?}", shell, err);
panic!("failed to generate completions for {:?} in {:?}: {:?}", shell, target_dir, err);
}
}

if let Err(err) =
clap_complete::generate_to(clap_complete_fig::Fig, &mut cmd, bin_name, target_dir)
{
panic!("failed to generate completions for fig: {:?}", err);
panic!("failed to generate completions for fig in {:?}: {:?}", target_dir, err);
}
}

0 comments on commit c6e73d5

Please sign in to comment.