Releases: Ghabriel/Z-Script
Releases · Ghabriel/Z-Script
v1.1.2
This version introduces:
- Z-Scripts no longer need to be a single file. To make a multi-file Z-Script, create a folder named
zscriptand add amain.tsfile to it, representing its entrypoint. Other files in that folder can be imported bymain.ts. - Improved error reporting for failed command executions and "no such rule" errors.
v1.0.1
The first stable release of Z-Script. The following changes are introduced:
- zsc: a command-line utility that compiles and runs Z-Scripts in the current directory. Supports the following flags:
-h/--help: prints usage details;-v/--version: prints the installed version of Z-Script;-w/--watch: watches the current directory'szscript.tsfor changes, allowing quick save-and-compile.
- Sub-command support: commands can now be declared inside other commands;
- New module: Git. Contains some common operations related to git.
- Formatting module: rewritten from scratch with a more ergonomic API. See
src/examples.tsfor details; - Shell module: the following functions are added:
- readFile
- readFolder
- readInput
- The default rule name has been changed from all to main.
v0.1.0
The first release of Z-Script. This release contains four modules:
- Core: essential functions that almost all scripts will call (addCommand, run, runCommand);
- Flags: a
parseArgsfunction to facilitate argument parsing; - Formatting: text/background color and styling;
- Shell: terminal-related utilities, including shell command execution and file manipulation.