1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

refactor: wrap PrintTasksHelp with arg-less signatures

provide exported methods for accessing PrintTasksHelp variants.
This commit is contained in:
Kevin Ard
2022-01-03 12:12:18 -05:00
parent 347c796662
commit 42702e81b3
4 changed files with 23 additions and 9 deletions

View File

@@ -492,7 +492,7 @@ func TestListAllShowsNoDesc(t *testing.T) {
assert.NoError(t, e.Setup())
var title string
e.PrintTasksHelp(true)
e.ListAllTasks()
for _, title = range []string{
"foo",
"voo",
@@ -514,7 +514,7 @@ func TestListCanListDescOnly(t *testing.T) {
}
assert.NoError(t, e.Setup())
e.PrintTasksHelp(false)
e.ListTasksWithDesc()
var title string
assert.Contains(t, buff.String(), "foo")