Skip to content

Displaying summary of docstring by --list #105

@hirokiky

Description

@hirokiky

Now, the invoke --list only display names of tasks.
I suggent to display what each tasks do too.

I know the full docstring can be shown invoke --help [task_name].
My suggestion is displaying it's summary (first line of it) when calling invoke --list.

If I wrote the task like this:

@task
def task_a():
    """ Task for show 'a'.

    This command is to test invoke command line tool.
    """
    print('a')

The fixed invoke --list will be like this::

$ invoke --list
Available tasks

task_a: Task for show 'a'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions