From 5caf15bd46fd65db75ccf16fb7f8962546b180b7 Mon Sep 17 00:00:00 2001 From: ponce Date: Mon, 28 Jul 2014 22:54:08 +0200 Subject: [PATCH] Reorganize package as to split in several files (colourize, Windows term emulation, and cprintf functions). --- dub.json | 2 ++ source/{ => colorize}/colorize.d | 1 + source/colorize/package.d | 10 ++++++++++ source/colorize/winterm.d | 7 +++++++ 4 files changed, 20 insertions(+) rename source/{ => colorize}/colorize.d (99%) create mode 100644 source/colorize/package.d create mode 100644 source/colorize/winterm.d diff --git a/dub.json b/dub.json index 2d72e33..3aef623 100644 --- a/dub.json +++ b/dub.json @@ -3,6 +3,8 @@ "description": "A port of Ruby's colorize library to D.", "license": "MIT", "copyright": "Copyright © 2014, Pedro Tacla Yamada", + "importPaths": ["source"], + "sourcePaths": ["source"], "authors": [ "Pedro Tacla Yamada" ] diff --git a/source/colorize.d b/source/colorize/colorize.d similarity index 99% rename from source/colorize.d rename to source/colorize/colorize.d index ae707c6..49628d8 100644 --- a/source/colorize.d +++ b/source/colorize/colorize.d @@ -4,6 +4,7 @@ * License: Licensed under the MIT license. See LICENSE for more information * Version: 0.1.0 */ +module colorize.colorize; import std.string : format; diff --git a/source/colorize/package.d b/source/colorize/package.d new file mode 100644 index 0000000..0669be1 --- /dev/null +++ b/source/colorize/package.d @@ -0,0 +1,10 @@ +/** + * Authors: ponce + * Date: July 28, 2014 + * License: Licensed under the MIT license. See LICENSE for more information + * Version: 0.1.0 + */ +module colorize; + +public import colorize.colorize; +public import colorize.winterm; \ No newline at end of file diff --git a/source/colorize/winterm.d b/source/colorize/winterm.d new file mode 100644 index 0000000..93030d7 --- /dev/null +++ b/source/colorize/winterm.d @@ -0,0 +1,7 @@ +/** + * Authors: ponce + * Date: July 28, 2014 + * License: Licensed under the MIT license. See LICENSE for more information + * Version: 0.1.0 + */ +module colorize.winterm; \ No newline at end of file