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:
    - ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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