summaryrefslogtreecommitdiffstats
path: root/gen
diff options
context:
space:
mode:
authorCosmicHorror <CosmicHorrorDev@pm.me>2023-11-02 16:35:39 -0600
committerGitHub <noreply@github.com>2023-11-02 17:35:39 -0500
commit79f5de0db76aef3ab8f02d204890de6f74d69d12 (patch)
treee5a250e8ea7469821081447db9ae5876fbc062d8 /gen
parente4e42a2d2d40cccc06e168dae3ede3a56feb38b4 (diff)
Temporarily remove recursive (`-r`) flag (#266)
* Remove recursive (`-r`) flag * `cargo xtask gen` * Remove unused `globwalk` and `ignore` deps
Diffstat (limited to 'gen')
-rw-r--r--gen/completions/_sd7
-rw-r--r--gen/completions/_sd.ps15
-rw-r--r--gen/completions/sd.bash2
-rw-r--r--gen/completions/sd.elv5
-rw-r--r--gen/completions/sd.fish3
-rw-r--r--gen/sd.19
6 files changed, 12 insertions, 19 deletions
diff --git a/gen/completions/_sd b/gen/completions/_sd
index 5aade10..e8f2804 100644
--- a/gen/completions/_sd
+++ b/gen/completions/_sd
@@ -18,16 +18,15 @@ _sd() {
'-n+[Limit the number of replacements]:REPLACEMENTS: ' \
'-f+[Regex flags. May be combined (like \`-f mc\`).]:FLAGS: ' \
'--flags=[Regex flags. May be combined (like \`-f mc\`).]:FLAGS: ' \
-'-p[Output result into stdout and do not modify files]' \
-'--preview[Output result into stdout and do not modify files]' \
+'-p[Display changes in a human reviewable format (the specifics of the format are likely to change in the future)]' \
+'--preview[Display changes in a human reviewable format (the specifics of the format are likely to change in the future)]' \
'-F[Treat FIND and REPLACE_WITH args as literal strings]' \
'--fixed-strings[Treat FIND and REPLACE_WITH args as literal strings]' \
-'-r[Recursively replace files]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
-':find -- The regexp or string (if -s) to search for:' \
+':find -- The regexp or string (if using `-F`) to search for:' \
':replace_with -- What to replace each match with. Unless in string mode, you may use captured values like $1, $2, etc:' \
'*::files -- The path to file(s). This is optional - sd can also read from STDIN:_files' \
&& ret=0
diff --git a/gen/completions/_sd.ps1 b/gen/completions/_sd.ps1
index 01e4658..4704172 100644
--- a/gen/completions/_sd.ps1
+++ b/gen/completions/_sd.ps1
@@ -24,11 +24,10 @@ Register-ArgumentCompleter -Native -CommandName 'sd' -ScriptBlock {
[CompletionResult]::new('-n', 'n', [CompletionResultType]::ParameterName, 'Limit the number of replacements')
[CompletionResult]::new('-f', 'f', [CompletionResultType]::ParameterName, 'Regex flags. May be combined (like `-f mc`).')
[CompletionResult]::new('--flags', 'flags', [CompletionResultType]::ParameterName, 'Regex flags. May be combined (like `-f mc`).')
- [CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'Output result into stdout and do not modify files')
- [CompletionResult]::new('--preview', 'preview', [CompletionResultType]::ParameterName, 'Output result into stdout and do not modify files')
+ [CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'Display changes in a human reviewable format (the specifics of the format are likely to change in the future)')
+ [CompletionResult]::new('--preview', 'preview', [CompletionResultType]::ParameterName, 'Display changes in a human reviewable format (the specifics of the format are likely to change in the future)')
[CompletionResult]::new('-F', 'F ', [CompletionResultType]::ParameterName, 'Treat FIND and REPLACE_WITH args as literal strings')
[CompletionResult]::new('--fixed-strings', 'fixed-strings', [CompletionResultType]::ParameterName, 'Treat FIND and REPLACE_WITH args as literal strings')
- [CompletionResult]::new('-r', 'r', [CompletionResultType]::ParameterName, 'Recursively replace files')
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
[CompletionResult]::new('-V', 'V ', [CompletionResultType]::ParameterName, 'Print version')
diff --git a/gen/completions/sd.bash b/gen/completions/sd.bash
index 412f19e..78eae05 100644
--- a/gen/completions/sd.bash
+++ b/gen/completions/sd.bash
@@ -19,7 +19,7 @@ _sd() {
case "${cmd}" in
sd)
- opts="-p -F -r -n -f -h -V --preview --fixed-strings --flags --help --version <FIND> <REPLACE_WITH> [FILES]..."
+ opts="-p -F -n -f -h -V --preview --fixed-strings --flags --help --version <FIND> <REPLACE_WITH> [FILES]..."
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
diff --git a/gen/completions/sd.elv b/gen/completions/sd.elv
index 3aaa7fb..e455cc0 100644
--- a/gen/completions/sd.elv
+++ b/gen/completions/sd.elv
@@ -21,11 +21,10 @@ set edit:completion:arg-completer[sd] = {|@words|
cand -n 'Limit the number of replacements'
cand -f 'Regex flags. May be combined (like `-f mc`).'
cand --flags 'Regex flags. May be combined (like `-f mc`).'
- cand -p 'Output result into stdout and do not modify files'
- cand --preview 'Output result into stdout and do not modify files'
+ cand -p 'Display changes in a human reviewable format (the specifics of the format are likely to change in the future)'
+ cand --preview 'Display changes in a human reviewable format (the specifics of the format are likely to change in the future)'
cand -F 'Treat FIND and REPLACE_WITH args as literal strings'
cand --fixed-strings 'Treat FIND and REPLACE_WITH args as literal strings'
- cand -r 'Recursively replace files'
cand -h 'Print help (see more with ''--help'')'
cand --help 'Print help (see more with ''--help'')'
cand -V 'Print version'
diff --git a/gen/completions/sd.fish b/gen/completions/sd.fish
index f99fd43..a0e03ab 100644
--- a/gen/completions/sd.fish
+++ b/gen/completions/sd.fish
@@ -1,7 +1,6 @@
complete -c sd -s n -d 'Limit the number of replacements' -r
complete -c sd -s f -l flags -d 'Regex flags. May be combined (like `-f mc`).' -r
-complete -c sd -s p -l preview -d 'Output result into stdout and do not modify files'
+complete -c sd -s p -l preview -d 'Display changes in a human reviewable format (the specifics of the format are likely to change in the future)'
complete -c sd -s F -l fixed-strings -d 'Treat FIND and REPLACE_WITH args as literal strings'
-complete -c sd -s r -d 'Recursively replace files'
complete -c sd -s h -l help -d 'Print help (see more with \'--help\')'
complete -c sd -s V -l version -d 'Print version'
diff --git a/gen/sd.1 b/gen/sd.1
index c5d92ff..3c3916b 100644
--- a/gen/sd.1
+++ b/gen/sd.1
@@ -8,7 +8,7 @@ sd
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.SH SYNOPSIS
-\fBsd\fR [\fB\-p\fR|\fB\-\-preview\fR] [\fB\-F\fR|\fB\-\-fixed\-strings\fR] [\fB\-r \fR] [\fB\-n \fR] [\fB\-f\fR|\fB\-\-flags\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] <\fIFIND\fR> <\fIREPLACE_WITH\fR> [\fIFILES\fR]
+\fBsd\fR [\fB\-p\fR|\fB\-\-preview\fR] [\fB\-F\fR|\fB\-\-fixed\-strings\fR] [\fB\-n \fR] [\fB\-f\fR|\fB\-\-flags\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] <\fIFIND\fR> <\fIREPLACE_WITH\fR> [\fIFILES\fR]
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.SH DESCRIPTION
@@ -17,14 +17,11 @@ sd
.SH OPTIONS
.TP
\fB\-p\fR, \fB\-\-preview\fR
-Output result into stdout and do not modify files
+Display changes in a human reviewable format (the specifics of the format are likely to change in the future)
.TP
\fB\-F\fR, \fB\-\-fixed\-strings\fR
Treat FIND and REPLACE_WITH args as literal strings
.TP
-\fB\-r\fR
-Recursively replace files
-.TP
\fB\-n\fR=\fIREPLACEMENTS\fR
Limit the number of replacements
.TP
@@ -50,7 +47,7 @@ Print help (see a summary with \*(Aq\-h\*(Aq)
Print version
.TP
<\fIFIND\fR>
-The regexp or string (if \-s) to search for
+The regexp or string (if using `\-F`) to search for
.TP
<\fIREPLACE_WITH\fR>
What to replace each match with. Unless in string mode, you may use captured values like $1, $2, etc