gitea.tea/modules/config
Lunny Xiao 8bfdec40c6 feat(login): add status command (#1087) (#1105)
Implements #1087.

Adds `tea login status [<login name>] [-o <format>]`, which verifies the stored token for one or all configured logins and reports:

- login name/URL and default status
- whether the token is valid (via `GET /api/v1/user`)
- auth method and token expiry
- whether the git credential helper is configured

Machine-readable output is available via the usual `-o` formats with fields `name`, `url`, `user`, `valid`, `auth_method`, `token_expiry`, `helper`, and `default`.

Reviewed-on: https://gitea.com/gitea/tea/pulls/1105
Reviewed-by: bircni <bircni@icloud.com>
2026-08-28 23:55:13 +00:00
..
config.go update import path to use gitea.dev (#1003) 2026-05-23 17:26:43 +00:00
credstore.go chore(config): replace authgate SDK with signet (#1081) 2026-08-02 14:38:25 +00:00
lock.go update import path to use gitea.dev (#1003) 2026-05-23 17:26:43 +00:00
lock_test.go replace log.Fatal/os.Exit with error returns (#941) 2026-03-27 03:36:44 +00:00
login.go feat(login): add status command (#1087) (#1105) 2026-08-28 23:55:13 +00:00
login_test.go upgrade go sdk and add test (#1048) 2026-07-01 18:06:19 +00:00
testtools.go Use git command instead of go git (#1005) 2026-05-23 20:24:47 +00:00