www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Scriptlike v0.8.0

reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
A bunch of new updates to Scriptlike: A library to aid in writing 
script-like programs in D.

Home: https://github.com/Abscissa/scriptlike
Dub: http://code.dlang.org/packages/scriptlike
Full changelog:
https://github.com/Abscissa/scriptlike/blob/master/CHANGELOG.md

Highlights (more info at full changelog):
- Change: Minimum officially supported DMD increased from v2.064.2 to 
v2.066.0.
- Change: API reference now built using ddox and uses much improved 
styling (actually uses a stylesheet now).
- Change: Misc changes to reduce symbol conflict issues with 
std.file/std.path.
- Change: Eliminate remnants of the "planned but never enabled" 
wstring/dstring versions of Path/Ext/Args. There turned out not to be 
much need for them.
- Enhancement: Add module scriptlike.only to import all of scriptlike, 
but omit the helper Phobos imports in scriptlike.std.
- Enhancement: fail now accepts an arbitrary list of args
- Enhancement: Added failEnforce.
- Enhancement: Added runCollect and tryRunCollect, to capture a 
command's output instead of displaying it.
- Enhancement: Added pause to pause and prompt the user to press Enter.
- Enhancement: Added Path-based wrappers for std.file's getcwd, 
thisExePath and tempDir.
- Fixed: No longer uses the deprecated std.process.system().
Jun 13 2015
next sibling parent "Jesse Phillips" <Jesse.K.Phillips+D gmail.com> writes:
On Sunday, 14 June 2015 at 01:28:18 UTC, Nick Sabalausky wrote:
 A bunch of new updates to Scriptlike: A library to aid in 
 writing script-like programs in D.

 Home: https://github.com/Abscissa/scriptlike
 Dub: http://code.dlang.org/packages/scriptlike
 Full changelog:
 https://github.com/Abscissa/scriptlike/blob/master/CHANGELOG.md
I've begun utilizing this in scripts I'm building, to help get things done faster and more consistently. I've combined it with dub because dub will grab the build off the web, but it also makes scripts a little "heavier." I really like having the bulk of Phobos imported. I'm very fond of the new std.process, so much better than powershell!!!!
Jun 18 2015
prev sibling parent reply "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> writes:
On Sunday, 14 June 2015 at 01:28:18 UTC, Nick Sabalausky wrote:
 A bunch of new updates to Scriptlike: A library to aid in 
 writing script-like programs in D.
You should add an overload to http://semitwist.com/scriptlike/scriptlike/interact/userInput.html that takes a reference to an existing variable like this int x; Something like this userInput(T)(string message, T x); This removes the need for specifying the type of `x` in the call to `userInput` if x is already defined.
Jun 22 2015
parent reply "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> writes:
On Monday, 22 June 2015 at 09:08:45 UTC, Per Nordlöw wrote:
 Something like this

     userInput(T)(string message, T x);
Correction, should be userInput(T)(string message, ref T x)
Jun 22 2015
parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 06/22/2015 05:09 AM, "Per =?UTF-8?B?Tm9yZGzDtnci?= 
<per.nordlow gmail.com>" wrote:
 On Monday, 22 June 2015 at 09:08:45 UTC, Per Nordlöw wrote:
 Something like this

     userInput(T)(string message, T x);
Correction, should be userInput(T)(string message, ref T x)
Good idea. Now added, and tagged v0.8.1: https://github.com/Abscissa/scriptlike/blob/master/CHANGELOG.md
Jun 22 2015