File: disable-gen-completion-options.patch

package info (click to toggle)
rust-procs 0.14.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: makefile: 53
file content (46 lines) | stat: -rw-r--r-- 1,641 bytes parent folder | download | duplicates (2)
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
--- a/src/opt.rs
+++ b/src/opt.rs
@@ -165,13 +165,13 @@
     #[clap(long = "gen-config")]
     pub gen_config: bool,
 
-    /// Generate shell completion file
+    /*/// Generate shell completion file
     #[clap(long = "gen-completion", value_name = "shell")]
     pub gen_completion: Option<Shell>,
 
     /// Generate shell completion file and write to stdout
     #[clap(long = "gen-completion-out", value_name = "shell")]
-    pub gen_completion_out: Option<Shell>,
+    pub gen_completion_out: Option<Shell>,*/
 
     /// Suppress header
     #[clap(long = "no-header")]
--- a/src/main.rs
+++ b/src/main.rs
@@ -121,13 +121,13 @@
     } else if opt.list {
         run_list();
         Ok(())
-    } else if let Some(shell) = opt.gen_completion {
+    } /* else if let Some(shell) = opt.gen_completion {
         gen_completion(shell, "./")
     } else if let Some(shell) = opt.gen_completion_out {
         //Opt::clap().gen_completions_to("procs", shell, &mut stdout());
         clap_complete::generate(shell, &mut Opt::command(), "procs", &mut stdout());
         Ok(())
-    } else {
+    } */ else {
         let config = get_config(&opt)?;
         if opt.watch_mode {
             let interval = match opt.watch_interval {
--- a/man/procs.1.adoc
+++ b/man/procs.1.adoc
@@ -28,7 +28,6 @@
 *--sorta <column>*:: Sort processes in ascending order by the specified column.
 *--sortd <column>*:: Sort processes in descending order by the specified column.
 *--insert <column>*:: Insert a new column at the position of `Slot` or `MultiSlot`.
-*--gen-completion*:: Generate shell completion files for supported shells.
 
 == EXAMPLES