Skip to content

Releases: vilia-fr/twx-cli

Support for the latest Git Bash on Windows

Choose a tag to compare

@co-stig co-stig released this 28 May 12:34
a849d34

TWX CLI zipping functionality broke with the latest update of Git Bash on Windows. See https://www.msys2.org/news/:

Bash has recently been changed to report "$OSTYPE" as "cygwin" instead of "msys".

This release fixes this issue.

2.2.0

Choose a tag to compare

@co-stig co-stig released this 23 Jan 10:19

Streamlined Windows dependencies

Previous versions required installing zip on Windows, which sucked, since there's no easy and secure way to do this. This version gets rid of this dependency, replacing it with a less-known alternative: Windows/System32/tar.exe. Windows uses bsdtar, which unlike GNU tar, can create zip archives.

It means that the only Windows dependency you need to install manually is jq, which can be done as simple as running winget install -e --id jqlang.jq (see README for details).

2.1.0

Choose a tag to compare

@co-stig co-stig released this 06 Mar 17:53
4265ee0

Added secrets sanitation

If you pass secrets through parameters, you can sanitize them from the log like this:

twx -v=deployment.log call Things/MyDeploymentThing/InitializeDatabase \
  -pusername="thingworx" \
  -ppassword="$DB_PASSWORD" \
  -secret="$DB_PASSWORD"

This will replace $DB_PASSWORD in deployment.log with asterisks ********. Resulting log file:

Parameter 'username' = 'thingworx'
Parameter 'password' = '******* (redacted)'
Will call 'http://192.168.0.24:8080/Thingworx/Things/MyDeploymentThing/Services/InitializeDatabase'

It also works with substrings, thus it handles JSON parameters correctly. For example:

twx -v=deployment.log call Things/MyDeploymentThing/InitializeDatabase \
  -pconfig="{\"username\": \"thingworx\", \"password\": \"$DB_PASSWORD\"}" \
  -secret="$DB_PASSWORD"

Resulting log file:

Parameter 'config' = '{"username": "thingworx", "password": "******* (redacted)"}'
Will call 'http://192.168.0.24:8080/Thingworx/Things/MyDeploymentThing/Services/InitializeDatabase'

2.0.0

Choose a tag to compare

@co-stig co-stig released this 06 Mar 15:47
4cd5d77
v2.0.0

Don't fail on existing log file

1.0.1

Choose a tag to compare

@gespagne gespagne released this 05 Feb 08:16
841e7a9

v 1.0.1

  1. Added build feature
  2. Added version feature
  3. Updated error handling and exit codes for import feature when importing extensions