From 3104729f29f4c1bb3a49b7adc2fa79f355115fd8 Mon Sep 17 00:00:00 2001 From: Andrey Cherkashin Date: Tue, 14 Nov 2017 18:40:03 -0800 Subject: [PATCH] Create shell completions OUT_DIR --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index aa7f03d..50e09bf 100644 --- a/build.rs +++ b/build.rs @@ -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"); @@ -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);