Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
lanwin opened this Issue · 4 comments

5 participants

@lanwin
Owner

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
Owner

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
@whut whut reopened this
@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
Owner

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.