Skip to content

Commit

Permalink
Create shell completions OUT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
andoriyu authored and sharkdp committed Nov 15, 2017
1 parent 6733920 commit 3104729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern crate version_check;
use clap::Shell;
use std::io::{self, Write};
use std::process::exit;
use std::fs;

include!("src/app.rs");

Expand All @@ -32,6 +33,7 @@ fn main() {
None => return,
Some(outdir) => outdir,
};
fs::create_dir_all(&outdir).unwrap();

let mut app = build_app();
app.gen_completions("fd", Shell::Bash, &outdir);
Expand Down

0 comments on commit 3104729

Please sign in to comment.