Skip to content

Commit ab67abe

Browse files
Update docs
1 parent f3734a2 commit ab67abe

30,548 files changed

Lines changed: 1449105 additions & 659501 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

debian/control

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ Depends: ${misc:Depends},
168168
Description: View devdocs offline in a terminal
169169
This package contains offline data for cakephp.
170170

171+
Package: devdocs-data-celery
172+
Architecture: all
173+
Depends: ${misc:Depends},
174+
devdocs (= ${binary:Version})
175+
Description: View devdocs offline in a terminal
176+
This package contains offline data for celery.
177+
171178
Package: devdocs-data-chai
172179
Architecture: all
173180
Depends: ${misc:Depends},
@@ -238,6 +245,13 @@ Depends: ${misc:Depends},
238245
Description: View devdocs offline in a terminal
239246
This package contains offline data for coffeescript.
240247

248+
Package: devdocs-data-coldfusion
249+
Architecture: all
250+
Depends: ${misc:Depends},
251+
devdocs (= ${binary:Version})
252+
Description: View devdocs offline in a terminal
253+
This package contains offline data for coldfusion.
254+
241255
Package: devdocs-data-composer
242256
Architecture: all
243257
Depends: ${misc:Depends},
@@ -945,6 +959,13 @@ Depends: ${misc:Depends},
945959
Description: View devdocs offline in a terminal
946960
This package contains offline data for man.
947961

962+
Package: devdocs-data-maplibre-gl
963+
Architecture: all
964+
Depends: ${misc:Depends},
965+
devdocs (= ${binary:Version})
966+
Description: View devdocs offline in a terminal
967+
This package contains offline data for maplibre-gl.
968+
948969
Package: devdocs-data-mariadb
949970
Architecture: all
950971
Depends: ${misc:Depends},
@@ -1106,6 +1127,13 @@ Depends: ${misc:Depends},
11061127
Description: View devdocs offline in a terminal
11071128
This package contains offline data for octave.
11081129

1130+
Package: devdocs-data-odin
1131+
Architecture: all
1132+
Depends: ${misc:Depends},
1133+
devdocs (= ${binary:Version})
1134+
Description: View devdocs offline in a terminal
1135+
This package contains offline data for odin.
1136+
11091137
Package: devdocs-data-opengl
11101138
Architecture: all
11111139
Depends: ${misc:Depends},
@@ -1288,6 +1316,13 @@ Depends: ${misc:Depends},
12881316
Description: View devdocs offline in a terminal
12891317
This package contains offline data for pygame.
12901318

1319+
Package: devdocs-data-pytest
1320+
Architecture: all
1321+
Depends: ${misc:Depends},
1322+
devdocs (= ${binary:Version})
1323+
Description: View devdocs offline in a terminal
1324+
This package contains offline data for pytest.
1325+
12911326
Package: devdocs-data-python
12921327
Architecture: all
12931328
Depends: ${misc:Depends},
@@ -1330,6 +1365,20 @@ Depends: ${misc:Depends},
13301365
Description: View devdocs offline in a terminal
13311366
This package contains offline data for r.
13321367

1368+
Package: devdocs-data-rabbitmq
1369+
Architecture: all
1370+
Depends: ${misc:Depends},
1371+
devdocs (= ${binary:Version})
1372+
Description: View devdocs offline in a terminal
1373+
This package contains offline data for rabbitmq.
1374+
1375+
Package: devdocs-data-rack
1376+
Architecture: all
1377+
Depends: ${misc:Depends},
1378+
devdocs (= ${binary:Version})
1379+
Description: View devdocs offline in a terminal
1380+
This package contains offline data for rack.
1381+
13331382
Package: devdocs-data-rails
13341383
Architecture: all
13351384
Depends: ${misc:Depends},
@@ -1645,6 +1694,13 @@ Depends: ${misc:Depends},
16451694
Description: View devdocs offline in a terminal
16461695
This package contains offline data for threejs.
16471696

1697+
Package: devdocs-data-tokio
1698+
Architecture: all
1699+
Depends: ${misc:Depends},
1700+
devdocs (= ${binary:Version})
1701+
Description: View devdocs offline in a terminal
1702+
This package contains offline data for tokio.
1703+
16481704
Package: devdocs-data-trio
16491705
Architecture: all
16501706
Depends: ${misc:Depends},

debian/devdocs-data-celery.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/celery
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/coldfusion
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/maplibre-gl

debian/devdocs-data-odin.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/odin

debian/devdocs-data-pytest.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/pytest
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/rabbitmq

debian/devdocs-data-rack.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/rack

debian/devdocs-data-tokio.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/devdocs/html/tokio

html/bash/a-programmable-completion-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 class="section">A Programmable Completion Example</h1> <p>The most common way to obtain additional completion functionality beyond the default actions <code>complete</code> and <code>compgen</code> provide is to use a shell function and bind it to a particular command using <code>complete -F</code>. </p> <p>The following function provides completions for the <code>cd</code> builtin. It is a reasonably good example of what shell functions must do when used for completion. This function uses the word passed as <code>$2</code> to determine the directory name to complete. You can also use the <code>COMP_WORDS</code> array variable; the current word is indexed by the <code>COMP_CWORD</code> variable. </p> <p>The function relies on the <code>complete</code> and <code>compgen</code> builtins to do much of the work, adding only the things that the Bash <code>cd</code> does beyond accepting basic directory names: tilde expansion (see <a href="tilde-expansion.html">Tilde Expansion</a>), searching directories in <var>$CDPATH</var>, which is described above (see <a href="bourne-shell-builtins.html">Bourne Shell Builtins</a>), and basic support for the <code>cdable_vars</code> shell option (see <a href="the-shopt-builtin.html">The Shopt Builtin</a>). <code>_comp_cd</code> modifies the value of <var>IFS</var> so that it contains only a newline to accommodate file names containing spaces and tabs – <code>compgen</code> prints the possible completions it generates one per line. </p> <p>Possible completions go into the <var>COMPREPLY</var> array variable, one completion per array element. The programmable completion system retrieves the completions from there when the function returns. </p> <div class="example"> <pre class="example"># A completion function for the cd builtin
1+
<h1 class="section" id="A-Programmable-Completion-Example-1">A Programmable Completion Example</h1> <p>The most common way to obtain additional completion functionality beyond the default actions <code>complete</code> and <code>compgen</code> provide is to use a shell function and bind it to a particular command using <code>complete -F</code>. </p> <p>The following function provides completions for the <code>cd</code> builtin. It is a reasonably good example of what shell functions must do when used for completion. This function uses the word passed as <code>$2</code> to determine the directory name to complete. You can also use the <code>COMP_WORDS</code> array variable; the current word is indexed by the <code>COMP_CWORD</code> variable. </p> <p>The function relies on the <code>complete</code> and <code>compgen</code> builtins to do much of the work, adding only the things that the Bash <code>cd</code> does beyond accepting basic directory names: tilde expansion (see <a class="pxref" href="tilde-expansion.html">Tilde Expansion</a>), searching directories in <var class="var">$CDPATH</var>, which is described above (see <a class="pxref" href="bourne-shell-builtins.html">Bourne Shell Builtins</a>), and basic support for the <code>cdable_vars</code> shell option (see <a class="pxref" href="the-shopt-builtin.html">The Shopt Builtin</a>). <code>_comp_cd</code> modifies the value of <var class="var">IFS</var> so that it contains only a newline to accommodate file names containing spaces and tabs – <code>compgen</code> prints the possible completions it generates one per line. </p> <p>Possible completions go into the <var class="var">COMPREPLY</var> array variable, one completion per array element. The programmable completion system retrieves the completions from there when the function returns. </p> <div class="example"> <pre class="example-preformatted"># A completion function for the cd builtin
22
# based on the cd completion function from the bash_completion package
33
_comp_cd()
44
{
@@ -45,11 +45,11 @@ <h1 class="section">A Programmable Completion Example</h1> <p>The most common wa
4545
return 0
4646
}
4747
</pre>
48-
</div> <p>We install the completion function using the <samp>-F</samp> option to <code>complete</code>: </p> <div class="example"> <pre class="example"># Tell readline to quote appropriate and append slashes to directories;
48+
</div> <p>We install the completion function using the <samp class="option">-F</samp> option to <code>complete</code>: </p> <div class="example"> <pre class="example-preformatted"># Tell readline to quote appropriate and append slashes to directories;
4949
# use the bash default completion for other arguments
5050
complete -o filenames -o nospace -o bashdefault -F _comp_cd cd
5151
</pre>
52-
</div> <p>Since we’d like Bash and Readline to take care of some of the other details for us, we use several other options to tell Bash and Readline what to do. The <samp>-o filenames</samp> option tells Readline that the possible completions should be treated as filenames, and quoted appropriately. That option will also cause Readline to append a slash to filenames it can determine are directories (which is why we might want to extend <code>_comp_cd</code> to append a slash if we’re using directories found via <var>CDPATH</var>: Readline can’t tell those completions are directories). The <samp>-o nospace</samp> option tells Readline to not append a space character to the directory name, in case we want to append to it. The <samp>-o bashdefault</samp> option brings in the rest of the "Bash default" completions – possible completions that Bash adds to the default Readline set. These include things like command name completion, variable completion for words beginning with ‘<samp>$</samp>’ or ‘<samp>${</samp>’, completions containing pathname expansion patterns (see <a href="filename-expansion.html">Filename Expansion</a>), and so on. </p> <p>Once installed using <code>complete</code>, <code>_comp_cd</code> will be called every time we attempt word completion for a <code>cd</code> command. </p> <p>Many more examples – an extensive collection of completions for most of the common GNU, Unix, and Linux commands – are available as part of the bash_completion project. This is installed by default on many GNU/Linux distributions. Originally written by Ian Macdonald, the project now lives at <a href="https://github.com/scop/bash-completion/">https://github.com/scop/bash-completion/</a>. There are ports for other systems such as Solaris and Mac OS X. </p> <p>An older version of the bash_completion package is distributed with bash in the <samp>examples/complete</samp> subdirectory. </p> <div class="_attribution">
52+
</div> <p>Since we’d like Bash and Readline to take care of some of the other details for us, we use several other options to tell Bash and Readline what to do. The <samp class="option">-o filenames</samp> option tells Readline that the possible completions should be treated as filenames, and quoted appropriately. That option will also cause Readline to append a slash to filenames it can determine are directories (which is why we might want to extend <code>_comp_cd</code> to append a slash if we’re using directories found via <var class="var">CDPATH</var>: Readline can’t tell those completions are directories). The <samp class="option">-o nospace</samp> option tells Readline to not append a space character to the directory name, in case we want to append to it. The <samp class="option">-o bashdefault</samp> option brings in the rest of the “Bash default” completions – possible completions that Bash adds to the default Readline set. These include things like command name completion, variable completion for words beginning with ‘<samp class="samp">$</samp>’ or ‘<samp class="samp">${</samp>’, completions containing pathname expansion patterns (see <a class="pxref" href="filename-expansion.html">Filename Expansion</a>), and so on. </p> <p>Once installed using <code>complete</code>, <code>_comp_cd</code> will be called every time we attempt word completion for a <code>cd</code> command. </p> <p>Many more examples – an extensive collection of completions for most of the common GNU, Unix, and Linux commands – are available as part of the bash_completion project. This is installed by default on many GNU/Linux distributions. Originally written by Ian Macdonald, the project now lives at <a class="url" href="https://github.com/scop/bash-completion/">https://github.com/scop/bash-completion/</a>. There are ports for other systems such as Solaris and Mac OS X. </p> <p>An older version of the bash_completion package is distributed with bash in the <samp class="file">examples/complete</samp> subdirectory. </p> <a class="index-entry-id" id="index-History_002c-how-to-use"></a><div class="_attribution">
5353
<p class="_attribution-p">
5454
Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>Licensed under the GNU Free Documentation License.<br>
5555
<a href="https://www.gnu.org/software/bash/manual/html_node/A-Programmable-Completion-Example.html" class="_attribution-link">https://www.gnu.org/software/bash/manual/html_node/A-Programmable-Completion-Example.html</a>

0 commit comments

Comments
 (0)