Skip to content

Request for order directive to define task list order output manually #2946

Description

@deusexec

Description

Current situation

At the moment, Taskfile displays commands in alphabetical order. This creates a messy output and makes the command list random.

What we need

We need a simple directive, such as order, that allows us to manually define the order in which commands are displayed.

tasks:
  default:
    silent: true
    cmds:
    - task --list

  b-command:
    desc: "This command should appear first"
    order: 1 # Here is our order directive
    cmds:
    - ...

  a-command:
    desc: "This command should appear second"
    silent: true
    order: 2 # Here is our order directive
    cmds:
    - ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions