Skip to content

Releases: Ghabriel/Z-Script

v1.1.2

26 Mar 19:19

Choose a tag to compare

This version introduces:

  • Z-Scripts no longer need to be a single file. To make a multi-file Z-Script, create a folder named zscript and add a main.ts file to it, representing its entrypoint. Other files in that folder can be imported by main.ts.
  • Improved error reporting for failed command executions and "no such rule" errors.

v1.0.1

07 Jul 20:34

Choose a tag to compare

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's zscript.ts for 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.ts for 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

05 Jul 22:02

Choose a tag to compare

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 parseArgs function to facilitate argument parsing;
  • Formatting: text/background color and styling;
  • Shell: terminal-related utilities, including shell command execution and file manipulation.