mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: address verified review findings (comments-views-search-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
9 files changed
+68
-8
No files matched your search
@@ -168,6 +168,9 @@ func (a *application) issueViewCommand() *cobra.Command {
|
||||
conversation follows the body.`, Example: `$ tea issue view 12
|
||||
$ tea issue view 12 --comments
|
||||
$ tea issue view https://gitea.com/OWNER/REPO/issues/12 --web`, Annotations: map[string]string{"tea.arguments": issueArguments}, Args: argsExact(1), RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if comments && a.options.json != "" {
|
||||
return clierr.Wrap(clierr.Usage, errors.New("--comments cannot be combined with --json or --jq; use tea issue comment list <number> --json"))
|
||||
}
|
||||
target, n, err := a.resolveRef(cmd, args[0], issueRef)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user