diff options
author | ClementTsang <34804052+ClementTsang@users.noreply.github.com> | 2024-05-11 20:03:31 -0400 |
---|---|---|
committer | ClementTsang <34804052+ClementTsang@users.noreply.github.com> | 2024-05-15 02:41:35 -0400 |
commit | 90c6ee07d83a8a02866c34e54fd7cba002c1195b (patch) | |
tree | f8b923c0334d4601496a3cc3c1074b58f6698073 /build.rs | |
parent | cce835b752bf331e6a0b0cc53d111dded2e58970 (diff) |
start moving args
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,12 +7,12 @@ use std::{ path::{Path, PathBuf}, }; -use clap::Command; +use clap::{Command, CommandFactory}; use clap_complete::{generate_to, shells::Shell, Generator}; use clap_complete_fig::Fig; use clap_complete_nushell::Nushell; -use crate::args::build_app; +use crate::args::BottomArgs; fn create_dir(dir: &Path) -> io::Result<()> { let res = fs::create_dir_all(dir); @@ -48,7 +48,7 @@ fn btm_generate() -> io::Result<()> { create_dir(&manpage_out_dir)?; // Generate completions - let mut app = build_app(); + let mut app = BottomArgs::command(); generate_completions(Shell::Bash, &mut app, &completion_out_dir)?; generate_completions(Shell::Zsh, &mut app, &completion_out_dir)?; generate_completions(Shell::Fish, &mut app, &completion_out_dir)?; |