mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: reconcile the issues stream and remove the legacy output shims
Use one canPrompt and pullNumberArguments for the comment commands, set display preferences instead of the retired environment variables in tests, and delete writeList, writeItem, batch, table, writeRecord(s), the legacy column map, confirm, require, validateMilestoneFlags and listWindow now that every command uses their replacements. Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
13 files changed
+23
-172
No files matched your search
@@ -308,3 +308,12 @@ func rawMarkdown(t *testing.T, deps Dependencies) {
|
||||
return nil
|
||||
}))
|
||||
}
|
||||
|
||||
// plainOutput keeps terminal output free of rendered Markdown and hyperlinks so it compares as text.
|
||||
func plainOutput(t *testing.T, deps Dependencies) {
|
||||
t.Helper()
|
||||
require.NoError(t, deps.Settings.Update(settings.TargetPreferences, func(s *settings.Snapshot) error {
|
||||
s.Preferences.Markdown, s.Preferences.Hyperlinks = "raw", "never"
|
||||
return nil
|
||||
}))
|
||||
}
|
||||
Reference in new issue
Block a user