tea/modules/print
Norwin 5b28a05eb7 Implement notification subcommands (#389)
- [x] enhance notification listing
  - add `--states` and `--type` filters
  - toggle per-user or per-repo listing via `--mine` flag
  - print more fields
- [x] add subcommands to mark notifications as read, unread, pinned, unpinned. operates on
  - all notifications matching the `--state` and `--mine` filter flags, or
  - a notification specified by ID.
- [ ] ~~add a `--fields` flag for notifications listing.~~ *not in this PR*
- [ ] ~~interactive mode~~ *not in this PR*. this would go well together with #324

fixes #243, fixes #155

based on initial work in #283 and #386, but opening a new PR for @6543 to review as I changed quite a lot

---

### ⚠️ breaking ⚠️
- `tea notifications --all` has moved to `tea notifications --mine`
- `tea notifications` now only works with the context of a remote repo.
  To run this outside of a local git dir, run either `tea n --mine` or `tea n --repo <my/repo>`

---

Co-authored-by: Karl Heinz Marbaise <kama@soebes.de>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Norwin Roosen <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/389
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Alexey 〒erentyev <axifive@noreply.gitea.io>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2021-09-06 01:11:17 +08:00
..
comment.go Update Changelog (#346) 2021-03-12 20:44:41 +08:00
formatters.go Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
issue.go Detect markdown line width, resolve relative URLs (#332) 2021-03-12 20:28:46 +08:00
label.go Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
login.go Detect markdown line width, resolve relative URLs (#332) 2021-03-12 20:28:46 +08:00
markdown.go Detect markdown line width, resolve relative URLs (#332) 2021-03-12 20:28:46 +08:00
milestone.go Improved list output (#281) 2020-12-10 06:04:36 +08:00
notification.go Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
organization.go Improved list output (#281) 2020-12-10 06:04:36 +08:00
pull.go Detect markdown line width, resolve relative URLs (#332) 2021-03-12 20:28:46 +08:00
release.go Improved list output (#281) 2020-12-10 06:04:36 +08:00
repo.go Detect markdown line width, resolve relative URLs (#332) 2021-03-12 20:28:46 +08:00
table.go Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
times.go Improve `tea time` (#319) 2020-12-23 12:58:36 +08:00