CLI commands for watching issues for changes.
Functions:
gitea.cli.watch.main.register_commands
register_commands() -> None
Register watch-related commands to the watch_app.
Source code in src/gitea/cli/watch/main.py
| def register_commands() -> None:
"""Register watch-related commands to the watch_app."""
from gitea.cli.watch.advance import advance_command # noqa: PLC0415
from gitea.cli.watch.list import list_command # noqa: PLC0415
watch_app.command(
"list",
help=(
"Report the issues that changed since the last run, and record the current state. Pass --no-advance "
"to report them without recording, so they come back until 'watch advance' commits them."
),
)(list_command)
watch_app.command(
"advance",
help=(
"Record the current state as the baseline to compare against, without reporting what changed. The "
"counterpart of 'watch list --no-advance', for a caller that commits the cache once it has acted."
),
)(advance_command)
|