github unkn0wn-root/resterm v1.2.2

3 hours ago

v1.2.2

Resterm now warns when directive-like comments contain an unknown directive or use a known directive in the wrong context, helping catch typos that were previously ignored silently.

New

Warnings for unknown and misplaced directives

A typo such as:

# @nmae CreateUser

now produces a warning explaining that @nmae is not a known Resterm directive.

Known directives used in the wrong context also produce a warning. For example, workflow only directives such as @if and @step are ignored outside an active workflow. Use @when or @skip-if to conditionally run an normal request.

Warnings are non-fatal: valid requests and workflows still runs but produces an warn. message now, and CLI exit codes are unchanged. The TUI displays warnings in the status bar. Press g . to open the complete warning list. Resterm treats a comment whose content begins with @name as a directive. To keep directive-looking text as an ordinary comment, add a second comment marker:

## @if this is documentation

Ordinary comments such as # Example: @if is used for workflow branches does not need the extra marker.

Fixed

  • Ignored or unknown directives no longer close an active workflow or interrupt an open workflow branch.
  • Invalid directives cannot accidentally create or modify a request while the parser determines whether they apply.

Don't miss a new resterm release

NewReleases is sending notifications on new releases.