v2.9
v2.9
This release focuses on testing and REPL usability improvements but also includes updates several new run modes to make error handling easier in larger scripts.
Breaking Changes:
- None
Features:
>>
redirect (append to file) operator added. This is just syntactic sugar for-> >>
. To redirect and overwrite/truncate a file use|>
rather than>
Support for automatic globbing in the commandline. This has to be enabled via
config: set shell auto-glob true
and you will get prompted for each glob. Any globs inside blocks will be ignored and this only works on the interactive prompt (ie not in scripts or background processes) -- these limitations are not a bug but by designDynamic autocomplete suggestions are now cached for 5 seconds by default. This cache can be changed via the CacheTTL directive in
autocomplete
Additional scoping for
try
andtrypipe
. You can define the scope as being an entire function or a module. If set for an entire module then any functions, autocompletions, etc inside that module will inherit thattry
ortrypipe
mode automatically. These are set via the new builtinrunmode
New reserved variable
$PWD
(this was just a global variable previously)Additional flags added to range,
@[
New builtin,
man-get-flags
. This exposes Murex's internal man page parser to the command line scriptsBinaries now produced for ARM64 Windows
Minor Changes:
The order in which namespaces are looked up has been altered since
private
s should be resolved beforefunction
sUpdated autocomplete for homebrew,
brew
New autocomplete for AWS CLI,
aws
New autocomplete for yarn,
yarn
Murex unit tests should report progressively rather than everything upon completion
Minimum recommended version of Go has been raised to 1.15. This is due to some bugs in dependencies when running tests against v1.13 and v1.14. Murex will technically compile and work on them but it not worth my time debugging why the CircleCI tests fail for those versions given their age
Vendor directory removed. This isn't really needed now support is focused on newer versions of Go
Website: New 404 error
Website: search bar added
The start of a massive push towards upping the test coverage
Lots of improvements to the docs
Bug Fixes:
- FileRef module string for functions forked from the REPL changed to
murex/shell
to bring it inline with the naming convention of other modules
Published: 15.07.2022 at 20:35
See Also
- Filter By Range
[ ..Range ]
: Outputs a ranged subset of data from stdin - Function / Module Defaults (
runmode
): Alter the scheduler's behaviour at higher scoping level - Murex's Offline Documentation (
murex-docs
): Displays the man pages for Murex builtins - Pipe Fail (
trypipe
): Checks for non-zero exits of each function in a pipeline - Private Function (
private
): Define a private function block - Public Function (
function
): Define a function block - Reserved Variables: Special variables reserved by Murex
- Schedulers: Overview of the different schedulers (or 'run modes') in Murex
- Shell Configuration And Settings (
config
): Query or define Murex runtime settings - Tab Autocompletion (
autocomplete
): Set definitions for tab-completion in the command line - Truncate File (
>
): Writes stdin to disk - overwriting contents if file already exists - Try Block (
try
): Handles non-zero exits inside a block of code >>
Append File: Writes stdin to disk - appending contents if file already exists>>
Append File: Writes stdin to disk - appending contents if file already exists
This document was generated from gen/changelog/v2.9_doc.yaml.