Skip to content

Releases: Yord/shargs-repl

0.5.0

06 Jul 10:04
Compare
Choose a tag to compare

Notable Features

  • Autocomplete now works with positional arguments that have an only field.

0.4.0

23 Jun 12:24
Compare
Choose a tag to compare

Breaking Changes

  • The repl function defaults now to an asynchronous version returning a promise.
  • The replSync function is introduced to take over repl's former behavior.

Notable Changes

  • The replF function is now available that takes a mode object describing a mode of execution. See Async for an implementation of asynchronous execution and Sync for synchronous execution.

0.3.0

17 Jun 18:12
Compare
Choose a tag to compare

Breaking Changes

  • The replEval function signature has changed from (args) => void to (args, errs) => void. Also, error handling is now expected to be performed by the action. (e20e935)

0.2.0

14 Jun 09:21
Compare
Choose a tag to compare

Breaking Changes

  • The completer function signature has changed from (parser, commands) => line => [matches, line] to (lexer, cmd, {only}) => line => [matches, line]. (795b8c1)

Notable Changes

  • Reimplement autocomplete based on shargs lexer function. (c2a5d23)