mirror of
https://github.com/sharkdp/fd
synced 2024-09-30 04:55:28 +00:00
Create shell completions OUT_DIR
This commit is contained in:
parent
673392045f
commit
3104729f29
2
build.rs
2
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);
|
||||
|
|
Loading…
Reference in a new issue