feat(#1985): add # Errors doc to subscription run (argus review)

This commit is contained in:
damocles 2026-06-24 23:28:58 +02:00 committed by mara
commit 527dff0200

View file

@ -32,6 +32,13 @@ pub struct Args {
list: bool,
}
/// Run the `subscription` verb: `--list` all watched repos, set the
/// current repo's watch (`--watch` / `--ignore` / `--unwatch`), or get
/// its current state.
///
/// # Errors
/// Propagates transport / non-2xx errors from the Forgejo client calls
/// (`get_json` / `put_json` / `delete`) and from `print_json`.
pub fn run(client: &Client, args: Args) -> Result<()> {
if args.list {
// List every repo the authed user watches, so an agent can audit