Skip to content
Myr

Create shell completions OUT_DIR

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Cherkashin · committed by David Peter · parent 6733920 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:build.rs+2 added
11 unmodified lines
1213use clap::Shell;14use std::io::{self, Write};15use std::process::exit;16use std::fs;1718include!("src/app.rs");1920fn main() {
11 unmodified lines
32 let outdir = match var {33 None => return,34 Some(outdir) => outdir,35 };36 fs::create_dir_all(&outdir).unwrap();3738 let mut app = build_app();39 app.gen_completions("fd", Shell::Bash, &outdir);40 app.gen_completions("fd", Shell::Fish, &outdir);
3 unmodified lines