-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions for ExecTask #1638
Comments
Sounds great. I would suggest to output only for phing -verbose then WDYT
Jawira Portugal ***@***.***> schrieb am Do. 9. Sept. 2021 um
11:23:
… Is your feature request related to a problem? Please describe.
Frequently I see Exec used like this:
<target name="download">
<exec executable="wget">
<arg value="-Obuild/composer.phar" />
<arg value="http://getcomposer.org/composer.phar" />
</exec>
</target>
However you can achieve the same using HttpGetTask, which it seems more
appropriate to me.
Describe the solution you'd like
So I'm thinking about adding "suggestions" when some executable are used.
For example, when wget executable is used, Phing will print a suggestion:
$ phing download
Buildfile: /home/deleteme/build.xml
project > download:
[Exec] Consider using HttpGetTask <==SUGGESTION
BUILD FINISHED
Total time: 0.3684 seconds
Similar suggestion messages can be displayed for things like
executable="mv" (use MoveTask) or executable="zip" (use ZipTask).
Describe alternatives you've considered
The alternative is not implement this :)
Additional context
On one hand I think this can be very useful to use the correct Task, on
the other hand maybe is too intrusive/verbose.
What are your thoughts? I can work in this feature in you want.
As usual feel free to close this issue if you want :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1638>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQMYRJAC6DZTAYEY3RUJWDUBB4K3ANCNFSM5DWV2FJA>
.
|
@siad007 I think you are right, even if this means that suggestion are going to be rarely displayed :( |
It might be easy implemented with an own phing command argument like phing -task-suggestions / phing -ts to turn the feature on if needed. |
oh, a think a custom option is too much, verbose log is ok for me :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Frequently I see Exec used like this:
However you can achieve the same using
HttpGetTask
, which it seems more appropriate to me.Describe the solution you'd like
So I'm thinking about adding "suggestions" when some executable are used.
For example, when
wget
executable is used, Phing will print a suggestion:Similar suggestion messages can be displayed for things like
executable="mv"
(use MoveTask) orexecutable="zip"
(use ZipTask).Describe alternatives you've considered
The alternative is not implement this :)
Additional context
On one hand I think this can be very useful to use the correct Task, on the other hand maybe is too intrusive/verbose.
What are your thoughts? I can work in this feature in you want.
As usual feel free to close this issue if you want :)
The text was updated successfully, but these errors were encountered: