Skip to content

Releases: erikgrinaker/goldenscript

v0.7.0

01 Jul 12:24
4c11e37
Compare
Choose a tag to compare

Improvements

  • 29903fa: Add > syntax to use the raw line as the command name.
  • 5d2519c: Allow tags before command.

v0.6.0

13 Jun 20:38
4f7c83a
Compare
Choose a tag to compare

Improvements

  • 2bd0058 Add [] syntax for command tags, exposed as Command.tags.
  • 686e261 Add \x escape sequence for hex bytes.
  • 0b62d19 Add \u{} escape sequence for Unicode characters.
  • a096929 Allow empty commands, keys, and prefixes.

v0.5.0

31 May 17:57
e460d7c
Compare
Choose a tag to compare

Bug Fixes

  • 9a824ad Fix spurious prefix emission with blank lines or empty output.

Improvements

  • 4fad99e Add Runner.start_command() and end_command() hooks.

v0.4.0

29 May 18:37
197db40
Compare
Choose a tag to compare

Breaking changes

  • 92ca419 Remove Command.pos_args() and key_args(), use consume_args().
  • 1b54d07 Return ErrorKind::Other from run() on command failure.

Improvements

  • bc9c253 Add ! syntax to expect command failures (panics or errors).
  • ae78f9e Add Command.consume_args() for convenient argument handling.
  • 6e8c185 Allow @ in unquoted strings.

v0.3.0

25 May 08:21
4f09a1c
Compare
Choose a tag to compare

Breaking changes

  • 44df27d Return Box<dyn Error> from Argument.parse(), like Runner.

Improvements

  • eb25a24 Add Command.pos_args() and key_args() for filtering argument types.
  • f4bcae6 Add Argument.name() to identify arguments.
  • 5ff556d Implement Clone for Command and Argument.

v0.2.0

05 May 19:31
11585b1
Compare
Choose a tag to compare

Breaking changes

  • 3ce4590 Use Box<dyn Error> for Runner methods.
  • fe62af3 Default to "ok" for command blocks that don't yield any output.
  • c98db05 Mark Command and Argument as non_exhaustive, to allow extending them.

Improvements

  • 51c34d9 Relax dependency version requirements.
  • f911c66 Add generate() to generate output for a goldenscript input.
  • 5f49b9d Add Argument.parse() to parse values into e.g. integers or booleans.
  • cc0936f Add Command.line_number with the command's position in the script.
  • cc0936f Add Runner error context such as the command or hook name and line number.
  • 456ae1b Make parse errors more concise.

v0.1.0

01 May 18:59
ce2fc84
Compare
Choose a tag to compare

Initial release.