diff --git a/.gitignore b/.gitignore
index d23644a4..a16abc44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@ tests/test_jupyter/*.txt
.ruff_cache
.venv
docs/jupyter_execute
+.DS_Store
diff --git a/docs/AGENTS.md b/docs/AGENTS.md
index e4fa1bed..db21c5e2 100644
--- a/docs/AGENTS.md
+++ b/docs/AGENTS.md
@@ -1,12 +1,7 @@
# Documentation
-- Link to existing docs/API refs instead of re-explaining concepts - reduces duplication
- and keeps info in sync - Prevents documentation drift and outdated explanations by
- maintaining a single source of truth for each concept
-- Link to canonical docs rather than duplicating content - prevents drift and
- maintenance burden - Consolidating documentation into existing files with
- cross-references keeps information consistent and reduces the effort needed to
- update multiple locations when changes occur.
+## General
+
- Document only public APIs and user-facing behavior - exclude internals, framework
abstractions, and implementation plumbing - Users need actionable documentation on
what they can use, not confusing details about internal mechanics they can't control
@@ -17,9 +12,6 @@
comprehensive coverage vs. fragmented mentions - Prevents users from missing
features when they approach from different contexts (CLI vs. API) and allows
features to be documented holistically rather than buried in subsections.
-- Avoid `# ruff: noqa` or `# type: ignore` in doc examples - ensures examples stay
- correct and runnable - Skip directives hide bugs and type errors in documentation
- code that users will copy, leading to broken examples in the wild
- Explicitly mark parameters/features as 'optional' in docs, even when types show it -
reduces cognitive load for readers - Users shouldn't need to parse type signatures
to understand optionality; explicit labels make documentation scannable and
@@ -31,3 +23,21 @@
- Strip boilerplate from docs examples - show only the feature being demonstrated -
Reduces cognitive load and helps readers focus on the specific API or pattern being
taught without distraction from scaffolding code.
+
+## Linking
+
+- Link to existing docs/API refs instead of re-explaining concepts - reduces duplication
+ and keeps info in sync - Prevents documentation drift and outdated explanations by
+ maintaining a single source of truth for each concept
+- Link to canonical docs rather than duplicating content - prevents drift and
+ maintenance burden - Consolidating documentation into existing files with
+ cross-references keeps information consistent and reduces the effort needed to
+ update multiple locations when changes occur.
+
+## Code Examples
+
+- Avoid `# ruff: noqa` or `# type: ignore` in doc examples - ensures examples stay
+ correct and runnable - Skip directives hide bugs and type errors in documentation
+ code that users will copy, leading to broken examples in the wild
+- Code file examples should have a title that shows the file name.
+- Important lines should be highlighted or annotated with a comment.
diff --git a/docs/source/_static/md/commands/build-arguments.md b/docs/source/_static/md/commands/build-arguments.md
index 1c45a5f0..c7ad3809 100644
--- a/docs/source/_static/md/commands/build-arguments.md
+++ b/docs/source/_static/md/commands/build-arguments.md
@@ -1,3 +1,3 @@
-| Argument | Description |
-| ------------ | ---------------------------------------------------------- |
-| `[PATHS]...` | Paths where pytask looks for task files and configuration. |
+| Argument | Description |
+| ----------------------- | ---------------------------------------------------------- |
+| [PATHS]... | Paths where pytask looks for task files and configuration. |
diff --git a/docs/source/_static/md/commands/build-options.md b/docs/source/_static/md/commands/build-options.md
index d2ef5162..317f7f2a 100644
--- a/docs/source/_static/md/commands/build-options.md
+++ b/docs/source/_static/md/commands/build-options.md
@@ -1,30 +1,43 @@
-| Option | Default | Description |
-| ---------------------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| `-c, --config FILE` | - | Path to configuration file. |
-| \`--capture \[fd | no | sys |
-| `--database-url TEXT` | - | Url to the database. |
-| `--debug-pytask` | `false` | Trace all function calls in the plugin framework. |
-| `--disable-warnings` | `false` | Disables the summary for warnings. |
-| `--dry-run` | `false` | Perform a dry-run. |
-| `--editor-url-scheme TEXT` | `file` | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
-| `--explain` | `false` | Explain why tasks need to be executed by showing what changed. |
-| `-f, --force` | `false` | Execute a task even if it succeeded successfully before. |
-| `--hook-module TEXT` | - | Path to a Python module that contains hook implementations. |
-| `--ignore TEXT` | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
-| `-k EXPRESSION` | - | Select tasks via expressions on task ids. |
-| `-m MARKER_EXPRESSION` | - | Select tasks via marker expressions. |
-| `--max-failures FLOAT RANGE` | `inf` | Stop after some failures. |
-| `--n-entries-in-table INTEGER RANGE` | `15` | How many entries to display in the table during the execution. Tasks which are running are always displayed. |
-| `--pdb` | `false` | Start the interactive debugger on errors. |
-| `--pdbcls module_name:class_name` | - | Start a custom debugger on errors. For example: --pdbcls=IPython.terminal.debugger:TerminalPdb |
-| `-s` | `false` | Shortcut for --capture=no. |
-| \`--show-capture \[no | stdout | stderr |
-| `--show-errors-immediately` | `false` | Show errors with tracebacks as soon as the task fails. |
-| `--show-locals` | `false` | Show local variables in tracebacks. |
-| `--show-traceback / --show-no-traceback` | `--show-traceback` | Choose whether tracebacks should be displayed or not. |
-| `--sort-table / --do-not-sort-table` | `--sort-table` | Sort the table of tasks at the end of the execution. |
-| `--strict-markers` | `false` | Raise errors for unknown markers. |
-| `--trace` | `false` | Enter debugger in the beginning of each task. |
-| `-v, --verbose INTEGER RANGE` | `1` | Make pytask verbose (>= 0) or quiet (= 0). |
-| `-x, --stop-after-first-failure` | `false` | Stop after the first failure. |
-| `-h, --help` | - | Show this message and exit. |
+| Option | Default | Description |
+| ---------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
+| -c, --config FILE | - | Path to configuration file. |
+| --capture [fd\|no\|sys\|tee-sys] | fd | Per task capturing method. |
+| --clean-lockfile | false | Rewrite the lockfile with only currently collected tasks. |
+| --database-url TEXT | - | Url to the database. |
+| --debug-pytask | false | Trace all function calls in the plugin framework. |
+| --disable-warnings | false | Disables the summary for warnings. |
+| --dry-run | false | Perform a dry-run. |
+| --editor-url-scheme TEXT | file | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
+| --explain | false | Explain why tasks need to be executed by showing what changed. |
+| -f, --force | false | Execute a task even if it succeeded successfully before. |
+| --hook-module TEXT | - | Path to a Python module that contains hook implementations. |
+| --ignore TEXT | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
+| -k EXPRESSION | - | Select tasks via expressions on task ids. |
+| --log-cli / --no-log-cli | --no-log-cli | Enable live log display during task execution. |
+| --log-cli-date-format TEXT | - | Log date format used by the logging module for live logs. |
+| --log-cli-format TEXT | - | Log format used by the logging module for live logs. |
+| --log-cli-level LEVEL | - | CLI logging level. |
+| --log-date-format TEXT | %H:%M:%S | Log date format used by the logging module. |
+| --log-file TEXT | - | Path to a file where logging will be written. |
+| --log-file-date-format TEXT | - | Log date format used by the logging module for the log file. |
+| --log-file-format TEXT | - | Log format used by the logging module for the log file. |
+| --log-file-level LEVEL | - | Log file logging level. |
+| --log-file-mode [w\|a] | w | Log file open mode. |
+| --log-format TEXT | %(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s | Log format used by the logging module. |
+| --log-level LEVEL | - | Level of messages to catch/display. Not set by default, so it depends on the logger configuration. |
+| -m MARKER_EXPRESSION | - | Select tasks via marker expressions. |
+| --max-failures FLOAT RANGE | inf | Stop after some failures. |
+| --n-entries-in-table INTEGER RANGE | 15 | How many entries to display in the table during the execution. Tasks which are running are always displayed. |
+| --pdb | false | Start the interactive debugger on errors. |
+| --pdbcls module_name:class_name | - | Start a custom debugger on errors. For example: --pdbcls=IPython.terminal.debugger:TerminalPdb |
+| -s | false | Shortcut for --capture=no. |
+| --show-capture [no\|stdout\|stderr\|log\|all] | all | Choose which captured output should be shown for failed tasks. |
+| --show-errors-immediately | false | Show errors with tracebacks as soon as the task fails. |
+| --show-locals | false | Show local variables in tracebacks. |
+| --show-traceback / --show-no-traceback | --show-traceback | Choose whether tracebacks should be displayed or not. |
+| --sort-table / --do-not-sort-table | --sort-table | Sort the table of tasks at the end of the execution. |
+| --strict-markers | false | Raise errors for unknown markers. |
+| --trace | false | Enter debugger in the beginning of each task. |
+| -v, --verbose INTEGER RANGE | 1 | Make pytask verbose (>= 0) or quiet (= 0). |
+| -x, --stop-after-first-failure | false | Stop after the first failure. |
+| `-h, --help` | - | Show this message and exit. |
diff --git a/docs/source/_static/md/commands/clean-arguments.md b/docs/source/_static/md/commands/clean-arguments.md
index 1c45a5f0..c7ad3809 100644
--- a/docs/source/_static/md/commands/clean-arguments.md
+++ b/docs/source/_static/md/commands/clean-arguments.md
@@ -1,3 +1,3 @@
-| Argument | Description |
-| ------------ | ---------------------------------------------------------- |
-| `[PATHS]...` | Paths where pytask looks for task files and configuration. |
+| Argument | Description |
+| ----------------------- | ---------------------------------------------------------- |
+| [PATHS]... | Paths where pytask looks for task files and configuration. |
diff --git a/docs/source/_static/md/commands/clean-options.md b/docs/source/_static/md/commands/clean-options.md
index f4be2d9b..5c458c80 100644
--- a/docs/source/_static/md/commands/clean-options.md
+++ b/docs/source/_static/md/commands/clean-options.md
@@ -1,15 +1,15 @@
-| Option | Default | Description |
-| -------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| `-c, --config FILE` | - | Path to configuration file. |
-| `-d, --directories` | `false` | Remove whole directories. |
-| `--database-url TEXT` | - | Url to the database. |
-| `-e, --exclude PATTERN` | - | A filename pattern to exclude files from the cleaning process. |
-| `--editor-url-scheme TEXT` | `file` | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
-| `--hook-module TEXT` | - | Path to a Python module that contains hook implementations. |
-| `--ignore TEXT` | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
-| `-k EXPRESSION` | - | Select tasks via expressions on task ids. |
-| `-m MARKER_EXPRESSION` | - | Select tasks via marker expressions. |
-| \`--mode \[dry-run | force | interactive\]\` |
-| `-q, --quiet` | `false` | Do not print the names of the removed paths. |
-| `--strict-markers` | `false` | Raise errors for unknown markers. |
-| `-h, --help` | - | Show this message and exit. |
+| Option | Default | Description |
+| ------------------------------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| -c, --config FILE | - | Path to configuration file. |
+| -d, --directories | false | Remove whole directories. |
+| --database-url TEXT | - | Url to the database. |
+| -e, --exclude PATTERN | - | A filename pattern to exclude files from the cleaning process. |
+| --editor-url-scheme TEXT | file | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
+| --hook-module TEXT | - | Path to a Python module that contains hook implementations. |
+| --ignore TEXT | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
+| -k EXPRESSION | - | Select tasks via expressions on task ids. |
+| -m MARKER_EXPRESSION | - | Select tasks via marker expressions. |
+| --mode [dry-run\|force\|interactive] | dry-run | Choose 'dry-run' to print the paths of files/directories which would be removed, 'interactive' for a confirmation prompt for every path, and 'force' to remove all unknown paths at once. |
+| -q, --quiet | false | Do not print the names of the removed paths. |
+| --strict-markers | false | Raise errors for unknown markers. |
+| `-h, --help` | - | Show this message and exit. |
diff --git a/docs/source/_static/md/commands/collect-arguments.md b/docs/source/_static/md/commands/collect-arguments.md
index 1c45a5f0..c7ad3809 100644
--- a/docs/source/_static/md/commands/collect-arguments.md
+++ b/docs/source/_static/md/commands/collect-arguments.md
@@ -1,3 +1,3 @@
-| Argument | Description |
-| ------------ | ---------------------------------------------------------- |
-| `[PATHS]...` | Paths where pytask looks for task files and configuration. |
+| Argument | Description |
+| ----------------------- | ---------------------------------------------------------- |
+| [PATHS]... | Paths where pytask looks for task files and configuration. |
diff --git a/docs/source/_static/md/commands/collect-options.md b/docs/source/_static/md/commands/collect-options.md
index 00724b6c..0eda5828 100644
--- a/docs/source/_static/md/commands/collect-options.md
+++ b/docs/source/_static/md/commands/collect-options.md
@@ -1,12 +1,12 @@
-| Option | Default | Description |
-| -------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| `-c, --config FILE` | - | Path to configuration file. |
-| `--database-url TEXT` | - | Url to the database. |
-| `--editor-url-scheme TEXT` | `file` | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
-| `--hook-module TEXT` | - | Path to a Python module that contains hook implementations. |
-| `--ignore TEXT` | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
-| `-k EXPRESSION` | - | Select tasks via expressions on task ids. |
-| `-m MARKER_EXPRESSION` | - | Select tasks via marker expressions. |
-| `--nodes` | `false` | Show a task's dependencies and products. |
-| `--strict-markers` | `false` | Raise errors for unknown markers. |
-| `-h, --help` | - | Show this message and exit. |
+| Option | Default | Description |
+| ------------------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
+| -c, --config FILE | - | Path to configuration file. |
+| --database-url TEXT | - | Url to the database. |
+| --editor-url-scheme TEXT | file | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
+| --hook-module TEXT | - | Path to a Python module that contains hook implementations. |
+| --ignore TEXT | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
+| -k EXPRESSION | - | Select tasks via expressions on task ids. |
+| -m MARKER_EXPRESSION | - | Select tasks via marker expressions. |
+| --nodes | false | Show a task's dependencies and products. |
+| --strict-markers | false | Raise errors for unknown markers. |
+| `-h, --help` | - | Show this message and exit. |
diff --git a/docs/source/_static/md/commands/command-list.md b/docs/source/_static/md/commands/command-list.md
index 5b28bdb8..093f3ad2 100644
--- a/docs/source/_static/md/commands/command-list.md
+++ b/docs/source/_static/md/commands/command-list.md
@@ -1,8 +1,8 @@
-| Command | Description |
-| ----------------------------------------- | ------------------------------------------------------------- |
-| [`build`](../../../commands/build.md) | Collect tasks, execute them and report the results. |
-| [`clean`](../../../commands/clean.md) | Clean the provided paths by removing files unknown to pytask. |
-| [`collect`](../../../commands/collect.md) | Collect tasks and report information about them. |
-| [`dag`](../../../commands/dag.md) | Create a visualization of the directed acyclic graph. |
-| [`markers`](../../../commands/markers.md) | Show all registered markers. |
-| [`profile`](../../../commands/profile.md) | Show information about resource consumption. |
+| Command | Description |
+| ----------------------- | ------------------------------------------------------------- |
+| [`build`](build.md) | Collect tasks, execute them and report the results. |
+| [`clean`](clean.md) | Clean the provided paths by removing files unknown to pytask. |
+| [`collect`](collect.md) | Collect tasks and report information about them. |
+| [`dag`](dag.md) | Create a visualization of the directed acyclic graph. |
+| [`markers`](markers.md) | Show all registered markers. |
+| [`profile`](profile.md) | Show information about resource consumption. |
diff --git a/docs/source/_static/md/commands/dag-arguments.md b/docs/source/_static/md/commands/dag-arguments.md
index 1c45a5f0..c7ad3809 100644
--- a/docs/source/_static/md/commands/dag-arguments.md
+++ b/docs/source/_static/md/commands/dag-arguments.md
@@ -1,3 +1,3 @@
-| Argument | Description |
-| ------------ | ---------------------------------------------------------- |
-| `[PATHS]...` | Paths where pytask looks for task files and configuration. |
+| Argument | Description |
+| ----------------------- | ---------------------------------------------------------- |
+| [PATHS]... | Paths where pytask looks for task files and configuration. |
diff --git a/docs/source/_static/md/commands/dag-options.md b/docs/source/_static/md/commands/dag-options.md
index 1e642004..8dc55edf 100644
--- a/docs/source/_static/md/commands/dag-options.md
+++ b/docs/source/_static/md/commands/dag-options.md
@@ -1,9 +1,9 @@
-| Option | Default | Description |
-| --------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
-| `-c, --config FILE` | - | Path to configuration file. |
-| `--database-url TEXT` | - | Url to the database. |
-| `--hook-module TEXT` | - | Path to a Python module that contains hook implementations. |
-| `-l, --layout TEXT` | `dot` | The layout determines the structure of the graph. Here you find an overview of all available layouts: https://graphviz.org/docs/layouts. |
-| `-o, --output-path FILE` | `dag.pdf` | The output path of the visualization. The format is inferred from the file extension. |
-| \`-r, --rank-direction \[TB | LR | BT |
-| `-h, --help` | - | Show this message and exit. |
+| Option | Default | Description |
+| -------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
+| -c, --config FILE | - | Path to configuration file. |
+| --database-url TEXT | - | Url to the database. |
+| --hook-module TEXT | - | Path to a Python module that contains hook implementations. |
+| -l, --layout TEXT | dot | The layout determines the structure of the graph. Here you find an overview of all available layouts: https://graphviz.org/docs/layouts. |
+| -o, --output-path FILE | dag.pdf | The output path of the visualization. The format is inferred from the file extension. |
+| -r, --rank-direction [TB\|LR\|BT\|RL] | TB | The direction of the directed graph. It can be ordered from top to bottom, TB, left to right, LR, bottom to top, BT, or right to left, RL. |
+| `-h, --help` | - | Show this message and exit. |
diff --git a/docs/source/_static/md/commands/markers-arguments.md b/docs/source/_static/md/commands/markers-arguments.md
index 1c45a5f0..c7ad3809 100644
--- a/docs/source/_static/md/commands/markers-arguments.md
+++ b/docs/source/_static/md/commands/markers-arguments.md
@@ -1,3 +1,3 @@
-| Argument | Description |
-| ------------ | ---------------------------------------------------------- |
-| `[PATHS]...` | Paths where pytask looks for task files and configuration. |
+| Argument | Description |
+| ----------------------- | ---------------------------------------------------------- |
+| [PATHS]... | Paths where pytask looks for task files and configuration. |
diff --git a/docs/source/_static/md/commands/markers-options.md b/docs/source/_static/md/commands/markers-options.md
index 24518cb8..aaf5aea0 100644
--- a/docs/source/_static/md/commands/markers-options.md
+++ b/docs/source/_static/md/commands/markers-options.md
@@ -1,5 +1,5 @@
-| Option | Default | Description |
-| -------------------- | ------- | ----------------------------------------------------------- |
-| `-c, --config FILE` | - | Path to configuration file. |
-| `--hook-module TEXT` | - | Path to a Python module that contains hook implementations. |
-| `-h, --help` | - | Show this message and exit. |
+| Option | Default | Description |
+| ------------------------------- | ------- | ----------------------------------------------------------- |
+| -c, --config FILE | - | Path to configuration file. |
+| --hook-module TEXT | - | Path to a Python module that contains hook implementations. |
+| `-h, --help` | - | Show this message and exit. |
diff --git a/docs/source/_static/md/commands/profile-arguments.md b/docs/source/_static/md/commands/profile-arguments.md
index 1c45a5f0..c7ad3809 100644
--- a/docs/source/_static/md/commands/profile-arguments.md
+++ b/docs/source/_static/md/commands/profile-arguments.md
@@ -1,3 +1,3 @@
-| Argument | Description |
-| ------------ | ---------------------------------------------------------- |
-| `[PATHS]...` | Paths where pytask looks for task files and configuration. |
+| Argument | Description |
+| ----------------------- | ---------------------------------------------------------- |
+| [PATHS]... | Paths where pytask looks for task files and configuration. |
diff --git a/docs/source/_static/md/commands/profile-options.md b/docs/source/_static/md/commands/profile-options.md
index 7023cab5..4b1f5e0c 100644
--- a/docs/source/_static/md/commands/profile-options.md
+++ b/docs/source/_static/md/commands/profile-options.md
@@ -1,9 +1,9 @@
-| Option | Default | Description |
-| -------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| `-c, --config FILE` | - | Path to configuration file. |
-| `--database-url TEXT` | - | Url to the database. |
-| `--editor-url-scheme TEXT` | `file` | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
-| \`--export \[no | json | csv\]\` |
-| `--hook-module TEXT` | - | Path to a Python module that contains hook implementations. |
-| `--ignore TEXT` | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
-| `-h, --help` | - | Show this message and exit. |
+| Option | Default | Description |
+| ------------------------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
+| -c, --config FILE | - | Path to configuration file. |
+| --database-url TEXT | - | Url to the database. |
+| --editor-url-scheme TEXT | file | Use file, vscode, pycharm or a custom url scheme to add URLs to task ids to quickly jump to the task definition. Use no_link to disable URLs. |
+| --export [no\|json\|csv] | no | Export the profile in the specified format. |
+| --hook-module TEXT | - | Path to a Python module that contains hook implementations. |
+| --ignore TEXT | - | A pattern to ignore files or directories. Refer to 'pathlib.Path.match' for more info. |
+| `-h, --help` | - | Show this message and exit. |
diff --git a/docs/source/_static/md/commands/root-options.md b/docs/source/_static/md/commands/root-options.md
index 67688857..a13dfe4a 100644
--- a/docs/source/_static/md/commands/root-options.md
+++ b/docs/source/_static/md/commands/root-options.md
@@ -1,4 +1,4 @@
-| Option | Description |
-| ------------ | --------------------------- |
-| `--version` | Show the version and exit. |
-| `-h, --help` | Show this message and exit. |
+| Option | Description |
+| ---------------------- | --------------------------- |
+| --version | Show the version and exit. |
+| `-h, --help` | Show this message and exit. |
diff --git a/docs/source/_static/md/logging-live.md b/docs/source/_static/md/logging-live.md
new file mode 100644
index 00000000..c42106d4
--- /dev/null
+++ b/docs/source/_static/md/logging-live.md
@@ -0,0 +1,40 @@
+
{escaped}"
+
+
def _format_default(option: click.Option) -> str:
default = option.default
result = "-"
@@ -28,21 +40,21 @@ def _format_default(option: click.Option) -> str:
if isinstance(default, bool):
if option.secondary_opts:
active = option.opts[0] if default else option.secondary_opts[0]
- result = f"`{active}`"
+ result = active
else:
- result = f"`{str(default).lower()}`"
+ result = str(default).lower()
elif default is None or (isinstance(default, tuple | list) and not default):
result = "-"
elif isinstance(default, enum.Enum):
if str(default.value).startswith("