Skip to content

Output file matches when defining a task #3

@ODiogoSilva

Description

@ODiogoSilva

I noticed that when defining a task:

// this is a kiss example of how tasks work with shell
const simpleTask = task({
  output: '*.txt', // checks if output file matches the specified pattern
  params: 'test_file.txt',  //defines parameters to be passed to the
    // task function
  name: 'This is the task name' //defines the name of the task
}, function(resolvedProps) {
    const params = resolvedProps.params
    return 'touch ' + params
  }
)

It seems that only one output file can be matched for a given extension?

output: '*.txt', // checks if output file matches the specified pattern

Is there a way to match multiple files of the same extension?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions