[PR #27] [CLOSED] [WIP] 12 switch to cobra #28

Closed
opened 2026-02-16 12:57:51 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/tea/pull/27
Author: @root360-AndreasUlm
Created: 5/2/2019
Status: Closed

Base: masterHead: 12_switch_to_cobra


📝 Commits (4)

  • 10a9b72 initial cobra implementation
  • 98b7f52 added version command
  • 8a2b3a9 moved version to --version flag of Cobra
  • 0bddaba migrated pulls to Cobra

📊 Changes

495 files changed (+251520 additions, -66 deletions)

View changed files

📝 cmd/config.go (+5 -0)
📝 cmd/pulls.go (+23 -23)
cmd/root.go (+99 -0)
📝 go.mod (+5 -1)
📝 go.sum (+36 -0)
📝 main.go (+1 -42)
vendor/github.com/fsnotify/fsnotify/.editorconfig (+5 -0)
vendor/github.com/fsnotify/fsnotify/.gitignore (+6 -0)
vendor/github.com/fsnotify/fsnotify/.travis.yml (+30 -0)
vendor/github.com/fsnotify/fsnotify/AUTHORS (+52 -0)
vendor/github.com/fsnotify/fsnotify/CHANGELOG.md (+317 -0)
vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md (+77 -0)
vendor/github.com/fsnotify/fsnotify/LICENSE (+28 -0)
vendor/github.com/fsnotify/fsnotify/README.md (+79 -0)
vendor/github.com/fsnotify/fsnotify/fen.go (+37 -0)
vendor/github.com/fsnotify/fsnotify/fsnotify.go (+66 -0)
vendor/github.com/fsnotify/fsnotify/inotify.go (+337 -0)
vendor/github.com/fsnotify/fsnotify/inotify_poller.go (+187 -0)
vendor/github.com/fsnotify/fsnotify/kqueue.go (+521 -0)
vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go (+11 -0)

...and 80 more files

📄 Description

PR to discuss global flag options.
To show sample implementation only pulls is converted to Cobra.
After finishing discussion about CLI the other subcommands will be converted.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/tea/pull/27 **Author:** [@root360-AndreasUlm](https://github.com/root360-AndreasUlm) **Created:** 5/2/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `12_switch_to_cobra` --- ### 📝 Commits (4) - [`10a9b72`](https://github.com/go-gitea/tea/commit/10a9b72cdbe1eea699db2b5454ff618aa16725af) initial cobra implementation - [`98b7f52`](https://github.com/go-gitea/tea/commit/98b7f52e441f4c57b876381b2d0260fcc6a7dbe8) added version command - [`8a2b3a9`](https://github.com/go-gitea/tea/commit/8a2b3a93d7b3cd4c8aa0310234befd59896b7240) moved version to --version flag of Cobra - [`0bddaba`](https://github.com/go-gitea/tea/commit/0bddabad9fe8af4b7bdf5b62e4c604f9622b688c) migrated pulls to Cobra ### 📊 Changes **495 files changed** (+251520 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `cmd/config.go` (+5 -0) 📝 `cmd/pulls.go` (+23 -23) ➕ `cmd/root.go` (+99 -0) 📝 `go.mod` (+5 -1) 📝 `go.sum` (+36 -0) 📝 `main.go` (+1 -42) ➕ `vendor/github.com/fsnotify/fsnotify/.editorconfig` (+5 -0) ➕ `vendor/github.com/fsnotify/fsnotify/.gitignore` (+6 -0) ➕ `vendor/github.com/fsnotify/fsnotify/.travis.yml` (+30 -0) ➕ `vendor/github.com/fsnotify/fsnotify/AUTHORS` (+52 -0) ➕ `vendor/github.com/fsnotify/fsnotify/CHANGELOG.md` (+317 -0) ➕ `vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md` (+77 -0) ➕ `vendor/github.com/fsnotify/fsnotify/LICENSE` (+28 -0) ➕ `vendor/github.com/fsnotify/fsnotify/README.md` (+79 -0) ➕ `vendor/github.com/fsnotify/fsnotify/fen.go` (+37 -0) ➕ `vendor/github.com/fsnotify/fsnotify/fsnotify.go` (+66 -0) ➕ `vendor/github.com/fsnotify/fsnotify/inotify.go` (+337 -0) ➕ `vendor/github.com/fsnotify/fsnotify/inotify_poller.go` (+187 -0) ➕ `vendor/github.com/fsnotify/fsnotify/kqueue.go` (+521 -0) ➕ `vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go` (+11 -0) _...and 80 more files_ </details> ### 📄 Description PR to discuss global flag options. To show sample implementation only pulls is converted to Cobra. After finishing discussion about CLI the other subcommands will be converted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 12:57:51 -05:00
yindo closed this issue 2026-02-16 12:57:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/tea#28