bircni
c5f674111a
revert: tea 1.0 rewrite (#1122–#1126) ( #1146 )
...
Reverts #1126 , #1125 , #1124 , #1123 and #1122 .
`go.mod` keeps the Go 1.26 line with toolchain `go1.26.9` (instead of the original `go1.26.6`) so the security fix from #1131 isn't lost.
reopens #69
reopens #141
reopens #162
reopens #172
reopens #197
reopens #232
reopens #240
reopens #246
reopens #323
reopens #325
reopens #326
reopens #328
reopens #344
reopens #351
reopens #373
reopens #403
reopens #406
reopens #417
reopens #430
reopens #457
reopens #480
reopens #482
reopens #489
reopens #490
reopens #498
reopens #500
reopens #504
reopens #510
reopens #516
reopens #523
reopens #556
reopens #560
reopens #569
reopens #571
reopens #602
reopens #632
reopens #633
reopens #643
reopens #666
reopens #670
reopens #672
reopens #677
reopens #683
reopens #697
reopens #726
reopens #737
reopens #770
reopens #779
reopens #804
reopens #817
reopens #831
reopens #833
reopens #834
reopens #908
reopens #966
reopens #1023
reopens #1029
reopens #1032
reopens #1050
reopens #1052
reopens #1069
reopens #1073
reopens #1087
reopens #1091
reopens #1094
reopens #1110
reopens #1115
reopens #1116
reopens #1118
Reviewed-on: https://gitea.com/gitea/tea/pulls/1146
Reviewed-by: TheFox0x7 <95654+thefox0x7@noreply.gitea.com >
2026-10-18 20:56:33 +00:00
bircni
f02245449b
feat!: rebuild tea on Cobra with explicit noun/verb commands ( #1126 )
...
- **switch tea to the Cobra command tree:** `internal/app` wires the packages from parts 1–4 into explicit noun/verb commands with `--repo`, `--json` / `--jq`, `--sudo` and `--debug`; `main.go` points at it. Build, release and docs tooling (`tools/cli-docs`, Makefile, goreleaser, snap, CI) and README / CONTRIBUTING are updated.
- **remove the urfave/cli command tree:** deletes `cmd/`, `modules/`, the old integration tests, contrib completion scripts and the generated `docs/CLI.md`, and drops their dependencies. This commit only deletes.
## Breaking changes
This is a breaking release. It requires Gitea 28 or newer; configuration moves to separate `config.yml` and `hosts.yml` files and requires fresh authentication, and command names, aliases, flags and output formats change. `docs/migration-1.0.md` maps every old command, flag and environment variable to its replacement.
## Issues
fixes #1118
fixes #1116
fixes #1115
fixes #1094
fixes #1091
fixes #1073
fixes #1052
fixes #1032
fixes #1023
fixes #966
fixes #908
fixes #833
fixes #831
fixes #817
fixes #804
fixes #779
fixes #770
fixes #737
fixes #697
fixes #726
fixes #677
fixes #672
fixes #633
fixes #632
fixes #560
fixes #556
fixes #523
fixes #516
fixes #510
fixes #504
fixes #500
fixes #482
fixes #406
fixes #403
fixes #373
fixes #351
fixes #344
fixes #326
fixes #325
fixes #323
fixes #246
fixes #240
fixes #232
fixes #197
fixes #172
fixes #141
fixes #69
fixes #1110
fixes #569
fixes #480
fixes #666
fixes #670
fixes #457
fixes #643
fixes #498
fixes #490
fixes #1069
fixes #834
fixes #602
fixes #328
fixes #417
fixes #571
fixes #1029
fixes #489
fixes #1050
fixes #162
fixes #430
fixes #1087
fixes #683
Reviewed-on: https://gitea.com/gitea/tea/pulls/1126
Reviewed-by: TheFox0x7 <95654+thefox0x7@noreply.gitea.com >
2026-10-11 17:23:06 +00:00
Minjie Fang
88f5cdcafa
fix(labels): add org label for ls and pr ( #1017 )
...
Fix https://gitea.com/gitea/tea/issues/634 , https://gitea.com/gitea/tea/issues/669
Reviewed-on: https://gitea.com/gitea/tea/pulls/1017
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Minjie Fang <wingsallen@gmail.com >
Co-committed-by: Minjie Fang <wingsallen@gmail.com >
2026-06-24 17:46:12 +00:00
Lunny Xiao
28ba9b915b
Move sdk from code.gitea.io/sdk/gitea to gitea.dev/sdk ( #1006 )
...
Reviewed-on: https://gitea.com/gitea/tea/pulls/1006
Reviewed-by: Zettat123 <39446+zettat123@noreply.gitea.com >
2026-05-26 04:51:09 +00:00
techknowlogick
b05e03416b
replace log.Fatal/os.Exit with error returns ( #941 )
...
* Use stdlib encoders
* Reduce some duplication
* Remove global pagination state
* Dedupe JSON detail types
* Bump golangci-lint
Reviewed-on: https://gitea.com/gitea/tea/pulls/941
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-committed-by: techknowlogick <techknowlogick@gitea.com >
2026-03-27 03:36:44 +00:00
techknowlogick
b868d30434
spdx ( #581 )
...
Co-authored-by: techknowlogick <hello@techknowlogick.com >
Co-committed-by: techknowlogick <hello@techknowlogick.com >
2023-09-08 01:40:02 +00:00
9efee7bf99
Add tea issues --fields, allow printing labels ( #312 )
...
generalize list printing with dynamic fields
refactor print.IssuesList to use tableFromItems()
preparatory refactor
print.IssuesList: allow printing labels
move formatters to formatters.go
expose more printable fields on issue
add generic flags.FieldsFlag
add fields flag to tea issues, tea ms issues
validate provided fields
add strict username, or formatted user fields
change default fields
tea issues -> replace updated with labels
tea ms issues -> replace author with labels, reorder
Validate provided fields
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/312
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io >
2020-12-21 23:41:07 +08:00
Norwin and Norwin Roosen
a91168fd36
Improved list output ( #281 )
...
remove unused debug var
move outputList into a struct
so we can add additional functionality for all list output
rename list output to table.go
make table sortable
sort milestones
sort milestones descending
remove unnecessary if
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/281
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io >
2020-12-10 06:04:36 +08:00
6543
5cb3e1ded5
Refactor: Move list print functions into print package ( #273 )
...
MV list issues -> print.IssuesList
MV list labels -> print.LabelsList & task.LabelsExport
MV list logins -> print.LoginsList
MV list miles -> print.MilestonesList
MV list pulls -> print.PullsList
MV list releases -> print.ReleasesList
MV list issues&pulls of mile -> print.IssuesPullsList
MV list notification threads -> print.NotificationsList
Unexport print.outputList
Unexport print.outputMarkdown
remove comd/flags dependency in print module
Reviewed-on: https://gitea.com/gitea/tea/pulls/273
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de >
2020-12-08 18:28:54 +08:00