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

feat: add support for single cmd task syntax (#1131)

This commit is contained in:
Tim De Pauw
2023-06-11 03:08:28 +02:00
committed by GitHub
parent 59e99caf8a
commit e2c1b3b931
5 changed files with 34 additions and 1 deletions

View File

@@ -2013,6 +2013,18 @@ func TestSplitArgs(t *testing.T) {
assert.Equal(t, "3\n", buff.String())
}
func TestSingleCmdDep(t *testing.T) {
tt := fileContentTest{
Dir: "testdata/single_cmd_dep",
Target: "foo",
Files: map[string]string{
"foo.txt": "foo\n",
"bar.txt": "bar\n",
},
}
tt.Run(t)
}
func TestSilence(t *testing.T) {
var buff bytes.Buffer
e := task.Executor{