Skip to content

Commit

Permalink
fix documentation rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-monch committed Nov 6, 2023
1 parent e1b7745 commit 72628ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions datalad_next/runners/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
:toctree: generated
run
batch
A standard exception type is used to communicate any process termination
with a non-zero exit code (unless the keyword argument ``exception_on_error`` is
Expand Down Expand Up @@ -83,7 +83,7 @@
NoCaptureGeneratorProtocol
StdOutCaptureGeneratorProtocol
StdOutLineCaptureGeneratorProtocol
Low-level tooling
-----------------
Expand Down
25 changes: 11 additions & 14 deletions datalad_next/runners/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
.. autosummary::
:toctree: generated
StdOutCaptureGeneratorProtocol
StdOutLineCaptureGeneratorProtocol
GeneratorAnnexJsonProtocol
_ResultGenerator
"""
from __future__ import annotations

Expand Down Expand Up @@ -120,13 +119,13 @@ def batchcommand(
A list containing the command and its arguments (argv-like).
cwd : Path | None
If not ``None``, determines a new working directory for the command.
terminate_time: int | None
terminate_time : int | None
The number of timeouts after which a terminate-signal will be sent to
the process, if it is still running. If no timeouts were provided in the
``timeout``-argument, the timeout is set to ``1.0``.
kill_time: int | None
kill_time : int | None
See documentation of :func:`datalad_next.runners.run.run`.
protocol_kwargs: dict
protocol_kwargs : dict
If ``terminate_time`` is given, a kill-signal will be sent to the
subprocess after kill-signal after ``terminate_time + kill_time``
timeouts. If ``terminate_time`` is not set, a kill-signal will be sent
Expand Down Expand Up @@ -211,25 +210,23 @@ def stdoutline_batchcommand(
response to an input.
Internally this calls :func:`batchcommand` with the
:class:`StdOutLineCaptureGeneratorProtocol` protocol implementation. See the
:class:`StdOutLineCaptureGeneratorProtocol` protocol implementation. See
the documentation of :func:`batchcommand` for a description of the
remaining parameters.
Parameters
----------
separator : str | None (default ``None``)
If ``None``, lines are separated by the built-in separators of python.
If not ``None``, lines are separated by the given character.
The``separator`` keyword argument will override a ``separator`` keyword
The ``separator`` keyword argument will override a ``separator`` keyword
argument provided in the ``protocol_kwargs``.
keep_ends: bool (default: ``False``)
keep_ends : bool (default ``False``)
If ``False``, the returned lines will not contain the terminating
character. If ``True``, the returned lines will contain the terminating
character.
The``keep_ends`` keyword argument will override a ``keep_ends`` keyword
argument provided in the ``protocol_kwargs``.
character. The ``keep_ends`` keyword argument will override a
``keep_ends`` keyword argument provided in the ``protocol_kwargs``.
See the documentation of :func:`batchcommand` for a description of the
remaining parameters.
"""
return batchcommand(
cmd,
Expand Down

0 comments on commit 72628ee

Please sign in to comment.