File: completion-fdfind.diff

package info (click to toggle)
rust-fd-find 10.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 968 kB
  • sloc: sh: 156; makefile: 38
file content (48 lines) | stat: -rw-r--r-- 1,907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Index: fd-find/src/cli.rs
===================================================================
--- fd-find.orig/src/cli.rs
+++ fd-find/src/cli.rs
@@ -20,7 +20,7 @@ use crate::filter::SizeFilter;
 
 #[derive(Parser)]
 #[command(
-    name = "fd",
+    name = "fdfind",
     version,
     about = "A program to find entries in your filesystem",
     after_long_help = "Bugs can be reported on GitHub: https://github.com/sharkdp/fd/issues",
Index: fd-find/src/main.rs
===================================================================
--- fd-find.orig/src/main.rs
+++ fd-find/src/main.rs
@@ -121,7 +121,7 @@ fn print_completions(shell: clap_complet
         .map(Path::new)
         .and_then(|path| path.file_stem())
         .and_then(|file| file.to_str())
-        .unwrap_or("fd");
+        .unwrap_or("fdfind");
     let mut cmd = Opts::command();
     cmd.build();
     clap_complete::generate(shell, &mut cmd, program_name, &mut std::io::stdout());
Index: fd-find/tests/tests.rs
===================================================================
--- fd-find.orig/tests/tests.rs
+++ fd-find/tests/tests.rs
@@ -1865,7 +1865,7 @@ fn test_exec_batch() {
             &["foo", "--exec-batch", "echo", "{}", "{}"],
             "error: Only one placeholder allowed for batch commands\n\
             \n\
-            Usage: fd [OPTIONS] [pattern] [path]...\n\
+            Usage: fdfind [OPTIONS] [pattern] [path]...\n\
             \n\
             For more information, try '--help'.\n\
             ",
@@ -1893,7 +1893,7 @@ fn test_exec_batch() {
             &["foo", "--exec-batch", "echo {}"],
             "error: First argument of exec-batch is expected to be a fixed executable\n\
             \n\
-            Usage: fd [OPTIONS] [pattern] [path]...\n\
+            Usage: fdfind [OPTIONS] [pattern] [path]...\n\
             \n\
             For more information, try '--help'.\n\
             ",