1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-07-03 01:02:55 +00:00

feat: add command to generate completion (#33)

This commit is contained in:
2024-11-06 18:54:36 +01:00
committed by GitHub
parent 242d818f88
commit 1debbf25a4
6 changed files with 93 additions and 22 deletions

View File

@ -18,16 +18,16 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
use std::fs;
use std::io::Error;
use clap::CommandFactory;
use clap_complete::generate_to;
use clap_complete::Shell::Bash;
use std::fs;
use std::io::Error;
include!("src/cli.rs");
fn main() -> Result<(), Error> {
let mut cmd = build_cli();
let mut cmd = Cli::command();
let package_name = std::env::var("CARGO_CRATE_NAME").unwrap_or("osc-variant".to_string());