Releases: snapmaster-io/snap
Support for printing log details based on action output contract
All snapmaster actions as of July 26 2020 follow the standard { status, message, data } contract for their output.
snap v0.6.1 prints the action output according to this contract. It also makes special dispensation for an output.data that
contains the data.stdout / data.stderr properties, printing them as standard output/error.
protocol updates
The snap CLI now supports the standard snapmaster protocol, where all responses follow a standard JSON format:
{
"status": "success" / "error",
"message": "error message",
"data": [] or {}
}
Support for switching between prod and dev environments
This release addresses issue #9.
v0.5.4
Color-print support for yaml and json responses
Small but pleasing enhancement: snap and provider yml definitions now print using colors. JSON object responses also color-print. JSON array responses still use uncolorized text, but will be phased out as the protocol gets updated to return an enclosing object for every response.
Fixed token expiration detection issue
Fixed token expiration detection after change to Unauthorized exception logic in API.
bug fix release
snap now detects stale access tokens and displays a proper error.
Support for managing connections and credentials
Release v0.5.0 adds snap CLI support for the following scenarios:
- listing tools in the library and getting their definitions
- adding, listing, and removing connections to tools
- adding, listing, and removing credential-sets associated with connections
Examples:
$ snap tools list
- list all tools in the library
$ snap tools get slack
- get the definition of the slack provider
$ snap connect slack
- connect slack (will prompt for connection parameters)
$ snap connections list
- list all connections
$ snap connections get slack
- get the credential-sets for the slack connection
$ snap connections credential-set list slack
- (synonym for the snap connections get
command)
$ snap connections credential-set add slack
- add a new credential-set for the slack connection
$ snap connections credential-set add gcp my-project credentials.json
- add a new c-s for gcp from a file
$ snap connections credential-set remove gcp my-project
- remove the my-project credential-set for gcp
$ snap connections disconnect gcp
- disconnect gcp, and remove all credential-sets associated with it
Config get/set subcommands
Snap supports the config get/set subcommands to set API URL and other configuration information.
This version also includes better handling of JSON payloads for logs and log details, as well as better table printing.
bug fix release
Bug fix(es):
- resolved float64/int64 conversion issue in
snap active get {snapid}