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:
12
task_test.go
12
task_test.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user