Skip to content

fix(cli): diff row data + multi-form flag parser + Windows installer - #45

Merged
SammyBytes merged 1 commit into
mainfrom
fix/diff-flag-parser-windows-installer
Aug 31, 2026
Merged

fix(cli): diff row data + multi-form flag parser + Windows installer#45
SammyBytes merged 1 commit into
mainfrom
fix/diff-flag-parser-windows-installer

Conversation

@SammyBytes

Copy link
Copy Markdown
Owner

Three operator-reported fixes bundled in one PR (they surfaced in the same debug session):

  1. deltix diff crashed with 'rows.reduce is not a function' on every call — server returns { fromRef, toRef, tables: [...] } and CLI passed 'diff' directly to printTable. Pass diff.tables.
  2. deltix log -n 5 mis-parsed '-n' as the repo name. Rewrote parseFlagValue to accept --name=value, --name value, and -x value for single-char short flags.
  3. New scripts/get-deltix-client.ps1: PowerShell one-liner installer (default install, SHA-256 verify, --System auto-elevation, same VERSION/INSTALL_DIR env vars as the bash script).

140 unit tests pass; lint clean.

Three operator-reported fixes bundled into one release because they all
surfaced in the same debug session:

1. 'deltix diff' crashed on every call with 'TypeError: rows.reduce is
   not a function'. The server returns { fromRef, toRef, tables: [...] }
   and the CLI passed 'diff' directly to printTable (which then called
   .reduce on an object instead of an array). Pass diff.tables.

2. 'deltix log -n 5' mis-parsed '-n' as the repo name. The flag helper
   parseFlagValue only matched '--name=value'. Rewrote it to accept all
   three POSIX forms: --name=value, --name value, and -x value for
   single-char short flags. flagValue for --password= and --from= now
   use the same helper. 7 unit tests covering all three forms.

3. Windows users now get a one-liner installer too:
   scripts/get-deltix-client.ps1 mirrors get-deltix-client.sh.
   Detects AMD64/ARM64, downloads via Invoke-WebRequest, verifies SHA-256
   via Get-FileHash, defaults to $HOME\.local\bin\deltix.exe,
   -System flag auto-elevates via runas to C:\Program Files\Deltix.
   Same VERSION= and INSTALL_DIR= env vars as the bash script.
   Documented in the README Windows install section.

140 unit tests pass; lint clean.
@SammyBytes
SammyBytes merged commit 53f628a into main Aug 31, 2026
2 checks passed
@SammyBytes
SammyBytes deleted the fix/diff-flag-parser-windows-installer branch August 31, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant