powershellbuild-processpsake

Is there a way to list all tasks in a psake build file?


I've got a default.ps1 file with several tasks, some of which I don't use all too often.

Instead of opening the file and grep'ing for the Tasks, is there a way to list them in the command line? Ideally with some description attached to them (that would be set near the tasks).

I'm thinking of something similar to what rake does with -t (see here for example)


Solution

  • Run:

    invoke-psake -docs
    

    This will list all the defined tasks.

    Output columns are: