#![allow(unused)] extern crate clap; extern crate log; use std::ffi::OsString; use std::fs::File; use std::io::Read; use std::path::Path; use clap::CommandFactory; use clap_complete::{generate_to, Generator, Shell}; include!("src/args.rs"); fn generate_completions(shell: G, dir: P) -> anyhow::Result<()> where G: Generator, P: Into, { let mut command = Args::command(); // uncomment to generate completions, // commented because it slows down builds for testing generate_to(shell, &mut command, "packwizml", dir)?; Ok(()) } fn main() -> anyhow::Result<()> { // generate_completions(Shell::PowerShell, "completions")?; // generate_completions(Shell::Bash, "completions")?; // generate_completions(Shell::Zsh, "completions")?; // generate_completions(Shell::Fish, "completions")?; dotenv_build::output(dotenv_build::Config::default())?; Ok(()) }