fix: deprecated function in clap (#1225)

`CommandFactory::into_app()` is deprecated in
favor of `CommandFactory::command()`
This commit is contained in:
a-kenji 2022-03-16 13:15:07 +01:00 committed by GitHub
parent ade3548496
commit c2e388f339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,7 @@ impl Setup {
}
};
let mut out = std::io::stdout();
clap_complete::generate(shell, &mut CliArgs::into_app(), "zellij", &mut out);
clap_complete::generate(shell, &mut CliArgs::command(), "zellij", &mut out);
// add shell dependent extra completion
match shell {
Shell::Bash => {}