Files
gitea-tea/cmd
Riccardo Förster 1d1d9197ee feat(issue): Add JSON output and file redirection (#841)
This change enhances the 'issue' command functionality by enabling structured JSON
output for single issue views and introducing a method for output redirection.

**Changes Implemented:**

1. Enables the existing `--output json` flag for single issue commands (e.g., 'tea issue 17'). This flag was previously ignored in this context.
2. Introduces the new `--out <filename>` flag, which redirects the marshaled JSON output from stdout to the specified file.

Feeback more then welcome.

Co-authored-by: Jonas Toth <development@jonas-toth.eu>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/tea/pulls/841
Reviewed-by: TheFox0x7 <thefox0x7@noreply.gitea.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Riccardo Förster <riccardo.foerster@sarad.de>
Co-committed-by: Riccardo Förster <riccardo.foerster@sarad.de>
2025-11-29 05:05:30 +00:00
..
2025-11-24 19:21:55 +00:00
2025-11-24 19:21:55 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2023-09-08 01:40:02 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-09-14 00:17:28 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00
2025-06-10 05:19:59 +00:00