Skip to content

Interactive CLI choosing mode (interactive task listing with filtering) #640

Description

@iangregsondev

Hi,

It would be really nice to be able to run taskfile in an interactive CLI choice mode.

i.e. A setting for "default" task to show the list of tasks, and using the cursor keys you get to choose and drill down until you find the one you are looking for. so i.e

Show all tasks and drill down into subtasks etc

task

OR

if I have a list of subtasks under the "exporter" taskfile then running

task exporter

would display all tasks for "exporter:" (a.k.a filtering) and allow choosing with the cursor keys or drilling down more i.e.

task: Available tasks for this project:
* exporter:build:linux:         Build exporter for Linux
* exporter:build:linux:prod:    Build exporter for Linux (production)
* exporter:build:mac:           Build exporter for Mac
* exporter:build:mac:prod:      Build exporter for Mac (production)
* exporter:release:             Release exporter
* exporter:release:snapshot:    Release exporter

exporter is actually a subtask i.e.

includes:
  exporter:
    taskfile: ./cmd/exporter/Taskfile.yml

Here is an example in the javascript ecosystem. https://www.npmjs.com/package/ntl , there are many others.

I thought it would be a nice addition.

Great product, by the way, I have dropped makefiles and use this now - everywhere :-)

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