Skip to content

Releases: lecstor/makitso

update the dist..

06 Jun 13:54

Choose a tag to compare

  • add prepare script & update makitso-prompt properly.. c437b8a

v2.1.1...v2.1.2

upgrade makitso-prompt for Node 14 compatibility

06 Jun 13:30

Choose a tag to compare

  • major deps upgrade 323a89d
  • update prettier formatting 5ab9f62
  • minor deps upgrade 3b977c2
  • fixes for formatting & typing 6753223
  • upgrade makitso-prompt for Node 14 compatibility d8b862a

v2.1.0...v2.1.1

Add ability to use Makitso apps non-interactively

16 May 05:40

Choose a tag to compare

  • allow a command to be run from the commandline 6feb183
  • formatting 82e8bdc

v2.0.0...v2.1.0

Convert to Typescript

15 May 12:04

Choose a tag to compare

v2.0.0-beta.1...v2.0.0

Typescript

14 Mar 04:31

Choose a tag to compare

Typescript Pre-release
Pre-release

v1.2.1...v2.0.0-beta.1

fix incomplete and non-existent commands

05 Mar 12:20

Choose a tag to compare

don't die a flaming death just because the command is incomplete, or completely empty

command spec help function

21 Feb 14:09

Choose a tag to compare

commands can now provide a help function which returns a string to be added to the prompt header

Add `suggest` property to context `ask`

07 Feb 13:09

Choose a tag to compare

When context asks the user for a value it will now do so with a unique instance of makitso-prompt.
These instances have a basic autocomplete keypress module which is initialised with an array or function provided by the context ask.suggest property.

Include options in args

20 Nov 14:03

Choose a tag to compare

Options (--foo bar) will now be included in the args object commands are called with

Nested command structure

20 Nov 03:07

Choose a tag to compare

This release drops Commander, does some command processing of it's own and uses yargs-parser for options parsing. This has allowed for a nested command structure for grouping of commands, more flexibility in the command format, and automatic command suggest/complete functionality.

The format of command definitions have changed, with an args property replacing the command property. The actual commands used on the commandline are now defined as the keys in the commands definition object. There is also the option to set a top-level command group in the new plugin config object.

Actions no receive two arguments, the context object and an object containing the command options.

A new choices property in the command definition allows for suggest/autocomplete to be displayed for command arguments. The format of this property will likely change or be extended... WIP.

There's also some cursor positioning hackery intended to enable a line below the cursor to be used for suggestions, errors, etc. Early days, but it seems to work ok.