feat(#1985): add # Errors doc to subscription run (argus review)
This commit is contained in:
parent
fce9bb8c11
commit
527dff0200
1 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,13 @@ pub struct Args {
|
||||||
list: bool,
|
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<()> {
|
pub fn run(client: &Client, args: Args) -> Result<()> {
|
||||||
if args.list {
|
if args.list {
|
||||||
// List every repo the authed user watches, so an agent can audit
|
// List every repo the authed user watches, so an agent can audit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue