task icon indicating copy to clipboard operation
task copied to clipboard

Allow the optional parameter when calling the task

Open DjinNO opened this issue 8 months ago • 0 comments

Description

I have a set of included tasks:

includes:
  custom: 
    taskfile: ./t.custom.yml
    flatten: true
    optional: true

I would like to be able to specify that this task is optional when it is called Either they must be optional by default, since include is optional

  name:
    cmds:
      - task: taskname
        optional: true

Now I have an error:

task: Task "taskname" does not exist

DjinNO avatar May 13 '25 09:05 DjinNO