fn build_completion(shell: &Shell) {
		let outdir = match env::var_os("OUT_DIR") {
			None => return,
			Some(dir) => dir,
		};
		let path = Path::new(&outdir)
			.parent()
			.unwrap()
			.parent()
			.unwrap()
			.parent()
			.unwrap()
			.join("completion-scripts");

		fs::create_dir(&path).ok();

		let _ = generate_to(*shell, &mut Cli::command(), "phala-node", &path);
	}
/// Build the shell auto-completion for a given Shell
Build the shell auto-completion for a given Shell
Build the shell auto - completion for a given Shell
fn build_completion(shell: &Shell) {
		let outdir = match env::var_os("OUT_DIR") {
			None => return,
			Some(dir) => dir,
		};
		let path = Path::new(&outdir)
			.parent()
			.unwrap()
			.parent()
			.unwrap()
			.parent()
			.unwrap()
			.join("completion-scripts");
		fs::create_dir(&path).ok();
		let _ = generate_to(*shell, &mut Cli::command(), "phala-node", &path);
	}
fn build_completion ( shell : & Shell ) { let outdir = match env :: var_os ( " " ) { None => return , Some ( dir ) => dir , } ; let path = Path :: new ( & outdir ) . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . join ( " " ) ; fs :: create_dir ( & path ) . ok ( ) ; let _ = generate_to ( * shell , & mut Cli :: command ( ) , " " , & path ) ; }
Build the shell auto-completion for a given Shell
Build the shell auto - completion for a given Shell
shell
&Shell
shell
&Shell