You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
871 B
30 lines
871 B
3 years ago
|
From 580486afe711a033f587114c2fc1b3727ea1f753 Mon Sep 17 00:00:00 2001
|
||
|
From: Fabio Valentini <decathorpe@gmail.com>
|
||
|
Date: Sat, 29 Jan 2022 20:47:22 +0100
|
||
|
Subject: [PATCH] port from clap_generate to clap_complete
|
||
|
|
||
|
---
|
||
|
build.rs | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/build.rs b/build.rs
|
||
|
index deeedc6..dff9008 100644
|
||
|
--- a/build.rs
|
||
|
+++ b/build.rs
|
||
|
@@ -37,9 +37,9 @@ fn generate_completions() -> io::Result<()> {
|
||
|
|
||
|
use app::App;
|
||
|
use clap::IntoApp;
|
||
|
- use clap_generate::generate_to;
|
||
|
- use clap_generate::generators::{Bash, Elvish, Fish, PowerShell, Zsh};
|
||
|
- use clap_generate_fig::Fig;
|
||
|
+ use clap_complete::generate_to;
|
||
|
+ use clap_complete::shells::{Bash, Elvish, Fish, PowerShell, Zsh};
|
||
|
+ use clap_complete_fig::Fig;
|
||
|
|
||
|
let app = &mut App::into_app();
|
||
|
let bin_name = env!("CARGO_PKG_NAME");
|
||
|
--
|
||
|
2.34.1
|
||
|
|