www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dub command line in config?

reply Jinx <Jinx goole.com> writes:
how to add command line options to the dub.json so they do not 
have to be typed on the command line every time?
Oct 08 2016
parent reply Mike Parker <aldacron gmail.com> writes:
On Saturday, 8 October 2016 at 23:05:51 UTC, Jinx wrote:
 how to add command line options to the dub.json so they do not 
 have to be typed on the command line every time?
AFAIK, there's not support for this. Is it really necessary, though? It's a one line shell script.
Oct 08 2016
parent reply Jinx <Jinx goole.com> writes:
On Sunday, 9 October 2016 at 05:09:28 UTC, Mike Parker wrote:
 On Saturday, 8 October 2016 at 23:05:51 UTC, Jinx wrote:
 how to add command line options to the dub.json so they do not 
 have to be typed on the command line every time?
AFAIK, there's not support for this. Is it really necessary, though? It's a one line shell script.
huh? Yes it is necessary. How hard could it be. Editing a script is the same as editing the json file and creates junk files. Why make things harder than they have to be? Seems like it would be rather trivial to implement.
Oct 08 2016
parent reply Mike Parker <aldacron gmail.com> writes:
On Sunday, 9 October 2016 at 05:34:36 UTC, Jinx wrote:

 huh? Yes it is necessary. How hard could it be. Editing a 
 script is the same as editing the json file and creates junk 
 files. Why make things harder than they have to be? Seems like 
 it would be rather trivial to implement.
Harder is relative. You're talking about adding a maintenance cost to dub for something that can be trivially done in a script. Regardless, your best bet is to add an enhancement request to dub's issue list [1] and see how it goes. Be sure to clarify if you're talking about passing args to dub or to the target of `dub run`, or both. [1] https://github.com/dlang/dub/issues
Oct 08 2016
parent reply Jinx <Jinx goole.com> writes:
On Sunday, 9 October 2016 at 06:55:44 UTC, Mike Parker wrote:
 On Sunday, 9 October 2016 at 05:34:36 UTC, Jinx wrote:

 huh? Yes it is necessary. How hard could it be. Editing a 
 script is the same as editing the json file and creates junk 
 files. Why make things harder than they have to be? Seems like 
 it would be rather trivial to implement.
Harder is relative. You're talking about adding a maintenance cost to dub for something that can be trivially done in a script. Regardless, your best bet is to add an enhancement request to dub's issue list [1] and see how it goes. Be sure to clarify if you're talking about passing args to dub or to the target of `dub run`, or both. [1] https://github.com/dlang/dub/issues
Come on, stop trying to be the asshole. You know as well as I do that it would require nearly 0 maintenance. You act like this is rocket science when really you are just being lazy. With your logic there is no reason to do anything because everything requires some non-zero maintenance cost. I have to maintain my script too, that is non-zero. The dub source code already has all the machinery required(parsing the dub json file and parsing the commands) so it would require very little code and require very little maintenance and provide a huge benefit for complex command line arguments and allow those command lines to propagate with the project file instead of the user having to provide a potentially security hole by passing around script files. See, you can't win because you are wrong.
Oct 09 2016
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 09/10/2016 9:17 PM, Jinx wrote:
 On Sunday, 9 October 2016 at 06:55:44 UTC, Mike Parker wrote:
 On Sunday, 9 October 2016 at 05:34:36 UTC, Jinx wrote:

 huh? Yes it is necessary. How hard could it be. Editing a script is
 the same as editing the json file and creates junk files. Why make
 things harder than they have to be? Seems like it would be rather
 trivial to implement.
Harder is relative. You're talking about adding a maintenance cost to dub for something that can be trivially done in a script. Regardless, your best bet is to add an enhancement request to dub's issue list [1] and see how it goes. Be sure to clarify if you're talking about passing args to dub or to the target of `dub run`, or both. [1] https://github.com/dlang/dub/issues
Come on, stop trying to be the asshole. You know as well as I do that it would require nearly 0 maintenance. You act like this is rocket science when really you are just being lazy. With your logic there is no reason to do anything because everything requires some non-zero maintenance cost. I have to maintain my script too, that is non-zero. The dub source code already has all the machinery required(parsing the dub json file and parsing the commands) so it would require very little code and require very little maintenance and provide a huge benefit for complex command line arguments and allow those command lines to propagate with the project file instead of the user having to provide a potentially security hole by passing around script files. See, you can't win because you are wrong.
That is enough. Mike Parker has presented a workaround that you can implement. He has also shown how you can contact those that have the power to make this happen as you desire. But as shown by other related issues[0], you may not get what you want. [0] https://github.com/dlang/dub/issues/940
Oct 09 2016
parent reply Jinx <Jinx goole.com> writes:
On Sunday, 9 October 2016 at 08:52:55 UTC, rikki cattermole wrote:
 On 09/10/2016 9:17 PM, Jinx wrote:
 [...]
That is enough. Mike Parker has presented a workaround that you can implement. He has also shown how you can contact those that have the power to make this happen as you desire. But as shown by other related issues[0], you may not get what you want. [0] https://github.com/dlang/dub/issues/940
Yessim boss! plez dunt hurt me! he shoed ma how too puck da cotton n giv me dis hur bag. I alredy no hew to puck da cotton n hud me own bag.
Oct 09 2016
parent reply WhatMeWorry <kheaser gmail.com> writes:
On Sunday, 9 October 2016 at 19:11:52 UTC, Jinx wrote:
 On Sunday, 9 October 2016 at 08:52:55 UTC, rikki cattermole 
 wrote:
 On 09/10/2016 9:17 PM, Jinx wrote:
 [...]
That is enough. Mike Parker has presented a workaround that you can implement. He has also shown how you can contact those that have the power to make this happen as you desire. But as shown by other related issues[0], you may not get what you want. [0] https://github.com/dlang/dub/issues/940
Yessim boss! plez dunt hurt me! he shoed ma how too puck da cotton n giv me dis hur bag. I alredy no hew to puck da cotton n hud me own bag.
Hey Jinx. Why don't you rename yourself to Jerk.
Oct 09 2016
parent Seb <seb wilzba.ch> writes:
On Sunday, 9 October 2016 at 20:03:58 UTC, WhatMeWorry wrote:
 On Sunday, 9 October 2016 at 19:11:52 UTC, Jinx wrote:
 On Sunday, 9 October 2016 at 08:52:55 UTC, rikki cattermole 
 wrote:
 On 09/10/2016 9:17 PM, Jinx wrote:
 [...]
That is enough. Mike Parker has presented a workaround that you can implement. He has also shown how you can contact those that have the power to make this happen as you desire. But as shown by other related issues[0], you may not get what you want. [0] https://github.com/dlang/dub/issues/940
Yessim boss! plez dunt hurt me! he shoed ma how too puck da cotton n giv me dis hur bag. I alredy no hew to puck da cotton n hud me own bag.
Hey Jinx. Why don't you rename yourself to Jerk.
This is not a company - this is open source. I understand that one can be frustrated sometimes, but it should be kept in mind that all contributions happen voluntarily in people's free time. If you want something to be changed (and can't wait that someone does it in their free time), please submit a PR.
Oct 10 2016