Skip to content

Add interactive input system (feature++ awesomeness++++) #235

@JulienBreux

Description

@JulienBreux

Hi awesome team!

Request

Possibility to declare interactive inputs. Yeah budy! No less no more! #humor

Simple example

File: Taskfile.yaml

version: "2"

task:
  aTaskWithInput:
    inputs:
      - foo
      - bar
      - baz

How to use?

$ task aTaskWithInput
$ foo
$ <input>
$ bar
$ <input>
$ baz
$ <input>

Advanced example

File: Taskfile.yaml

version: "2"

task:
  aTaskWithInput:
    inputs:
      foo:
        required: true
      bar:
        default: "🍻"
        desc: "Do you love beer?"
      baz:
        validator: "([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))"

How to use?

$ task aTaskWithInput
$ foo (Is required)
$ <input>
$ Do you love beer? (default: 🍻)
$ <input>
$ baz (must validate: "([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))")
$ <input>

Feedback need!

👍 OMG! I want this now!
😕 I don't know guy, it's cool but I can leave without!
👎 Please... I've a lot of work!

Implem' status

  1. Fri 9 Aug: Started (https://github.com/JulienBreux/task/tree/features/inputs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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