Thread overview
Scriptlike v0.8.0
Jun 14, 2015
Nick Sabalausky
Jun 19, 2015
Jesse Phillips
Jun 22, 2015
Per Nordlöw
Jun 22, 2015
Per Nordlöw
Jun 22, 2015
Nick Sabalausky
June 14, 2015
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().
June 19, 2015
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!!!!
June 22, 2015
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.
June 22, 2015
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)

June 22, 2015
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