fix: address verified review findings (auth-config-doctor-1)

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 17:38:52 +02:00
1 parent e15ea907be
commit 0d47b3f149
7 files changed
+113 -6

No files matched your search

+2
View File
@@ -54,6 +54,8 @@ const doctorTimeout = 10 * time.Second
func (a *application) doctorCommand() *cobra.Command {
return &cobra.Command{
Use: "doctor", Short: "Check tea's setup for this directory", Args: argsExact(0),
// doctor loads the settings itself, to report a broken file instead of failing on it.
Annotations: map[string]string{"tea.offline": "true"},
Long: `Check the setup that commands in this directory use: the settings files, the instance
and whether it answers, the account and its credential, the repository, and Git. Each
problem comes with the command that fixes it. tea doctor fails when a check fails.`,