1 /++ 2 $(H2 Scriptlike $(SCRIPTLIKE_VERSION)) 3 Scriptlike is a utility library to help you write script-like programs in D. 4 5 Written in the $(LINK2 http://dlang.org, D programming language) and licensed under 6 The $(LINK2 https://github.com/Abscissa/scriptlike/blob/master/LICENSE.txt, zlib/libpng) License. 7 8 For the list of officially supported compiler versions, see the 9 $(LINK2 https://github.com/Abscissa/scriptlike/blob/master/.travis.yml, .travis.yml) 10 file included with your version of Scriptlike. 11 12 Links: 13 $(UL 14 $(LI $(LINK2 https://github.com/Abscissa/scriptlike, Scriptlike Homepage) ) 15 $(LI $(LINK2 http://semitwist.com/scriptlike, Latest API Reference ) ) 16 $(LI $(LINK2 http://semitwist.com/scriptlike-docs, Older API Reference Archives ) ) 17 ) 18 19 Import all (including anything from Phobos likely to be useful for scripts): 20 ------------ 21 import scriptlike; 22 ------------ 23 24 Import all of Scriptlike only, but no Phobos: 25 ------------ 26 import scriptlike.only; 27 ------------ 28 29 Homepage: 30 $(LINK https://github.com/abscissa/scriptlike) 31 32 Copyright: 33 Copyright (C) 2014-2017 Nick Sabalausky. 34 Portions Copyright (C) 2010 Jesse Phillips. 35 36 License: $(LINK2 https://github.com/Abscissa/scriptlike/blob/master/LICENSE.txt, zlib/libpng) 37 Authors: Nick Sabalausky, Jesse Phillips 38 +/ 39 40 module scriptlike; 41 42 public import scriptlike.only; 43 public import scriptlike.std; 44 45 version(docs_scriptlike_d) import changelog; 46 version(unittest_scriptlike_d) void main() {} 47 48 // Run tests for sample programs in 'examples' 49 version(unittest_scriptlike_d) 50 unittest 51 { 52 version(Windows) 53 // This Posix artifact gets in the way of calling .myscript.exe 54 // Only an issue when Win/Posix machines are operating from the same directory. 55 tryRemove("tests/.testExample"); 56 57 writeln("Testing sample programs in 'examples':"); 58 run(text( Path("tests/testExample"), " All" )); 59 }