Skip to content

go-task is hard to use without knowing the go template engine #1679

@callegar

Description

@callegar

I would like to see the go-task documentation expanded because currently it is very difficult to understand how to use go-task unless you have a go background.

From the documentation I am getting the impression that go-task should be a generic task runner / build tool and not a tool specific to go programmers. This impression comes from the fact that it is presented as a simpler and easier to use replacement for GNU Make and similar software.

However, it is currently very difficult to understand what can and cannot go within {{ }}. Specifically the page at https://golang.org/pkg/text/template/ that is linked in the documentation is not really easy to follow by those without a go programming background.

For instance: if I have a glob pattern, how do I put into a variable its expansion? If I have an array variable, can I flatten it into a string to pass it to the shell? Complex as it is, the GNU Make manual has an extended section about variables and functions applicable to them and it would be nice to have at least some more examples about how to use functions on variables in go-task.

Thanks for the attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsChanges related to documentation.

    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