describe (or desc) function for describe the next task #12

Closed
lanwin opened this Issue Jun 21, 2011 · 4 comments

Projects

None yet

5 participants

@lanwin
psake member

This:

 task Foobar -depends Foo,Bar,Clear -description "This is my very very cool tesk task" {
 }

Is very long and not very readable. So i would like to suggest to add an describe or desc function which will provide a description for the next created task.

 desc "This is my very very cool tesk task"
 task Foobar -depends Foo,Bar,Clear {
 }

While typing this i get another idea:

 "This is my very very cool test task" |
 task Foobar -depends Foo,Bar,Clear {
 }

Could be work.

Any thoughts? I would work on a patch.

@mhenrixon

I like the desc best since it is more explicit what the text actually means.

@whut
psake member

I like the "pipe" solution, nice trick!

At the moment I found that there is solution to that readability problem right now!, using backtick:

task MyTask `
-description "This is my task" `
-depends OtherTask `
-continueOnError {
}
@whut whut closed this Oct 23, 2011
@whut whut reopened this Oct 23, 2011
@AnthonyMastrean

You can just write a string as the first line in the action script block. It gets printed to the console all the same. I get that it's not above the function, describing it, but there it is.

Task whatevs {
    "Do whatever, srsly"
}
@damianh
psake member

@whut You re-opened this 2 years ago, but it looks like it'll never get implemented. Am cleaning up the issues, so I'm going to close this. Please re-open if it's actually going to be done. (My opinion - I don't think it adds much and could live without it)

@damianh damianh closed this Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment