diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-20 15:22:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-20 15:22:41 -0400 |
| commit | efb3aae55908cb88f5a9c900d6563603ab792d6a (patch) | |
| tree | ce4293828ab43de4e6440bed0accf871a2d82f94 /examples/colorful | |
| parent | 3d313c5956510a807c2ce7d1ffd9c3bfbb708444 (diff) | |
Add more advanced configuration options to modules.ini and support
automatically downloading and installing from it.
Diffstat (limited to 'examples/colorful')
| -rw-r--r-- | examples/colorful/README.md | 8 | ||||
| -rw-r--r-- | examples/colorful/colorful.tm | 2 | ||||
| -rw-r--r-- | examples/colorful/modules.ini | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/examples/colorful/README.md b/examples/colorful/README.md index 04a221e3..faded9b1 100644 --- a/examples/colorful/README.md +++ b/examples/colorful/README.md @@ -54,8 +54,14 @@ colorful [--help] [texts...] [--by-line] [--files ...] `colorful` can also be used as a Tomo library: +```ini +# modules.ini +[colorful] +version=v1.0 +``` + ```tomo -use colorful_v1.0 +use colorful $Colorful" @(blue:Welcome to the @(bold:party)!) diff --git a/examples/colorful/colorful.tm b/examples/colorful/colorful.tm index 270efe8c..9a8bbbba 100644 --- a/examples/colorful/colorful.tm +++ b/examples/colorful/colorful.tm @@ -7,7 +7,7 @@ HELP := " CSI := "\033[" -use patterns_v1.0 +use patterns lang Colorful convert(text:Text -> Colorful) diff --git a/examples/colorful/modules.ini b/examples/colorful/modules.ini new file mode 100644 index 00000000..fb52a859 --- /dev/null +++ b/examples/colorful/modules.ini @@ -0,0 +1,2 @@ +[patterns] +version=v1.0 |
