Releases: maxar-infrastructure/go-commons
v0.10.0
Modules affected
shell
[BACKWARD INCOMPATIBLE]awscommons
Description
- Add new function to upload string contents to S3 bucket.
- Refactor shell functions to use a common underlying runtime interface.
- New shell run command functions
RunShellCommandAndGetOutputStruct
andRunShellCommandAndGetOutputStructAndStreamOutput
which will return a struct that captures stdout, stderr, and merged outputs so you can access all of those outputs. - Refactor implementation of streaming and capturing outputs. This implementation respects the ordering in stdout and stderr better. The previous implementation always preferred to read stdout over stderr, which resulted in delaying the streaming of stderr if both were simultaneously written to. The updated implementation will properly interleave the contents regardless of timing.
NOTE: This release introduces changes that modify the behavior of the captured and streamed outputs for the *StreamOutput
shell functions. Specifically, the streamed logs are now more interleaved, and the output strings will include terminating newlines if the original stdout/stderr included a terminating newline before EOF.
Related links
v0.9.2
Modules affected
lock
[NEW]
Description
- Add new functionality to allow locking of resources when they're being used from multiple places simultaneously.
We expect this to be useful especially when testing AWS resources/services which can only be enabled once for the whole AWS Account - such as SecurityHub, GuardDuty, or any others.
Related links
v0.9.1
Modules affected
awscommons
[NEW]
Description
- Add new functions to interact with the AWS API using the AWS SDK for Go V2.
Related links
v0.9.0
Modules affected
version
[BACKWARD INCOMPATIBLE]
Description
This release renames the VERSION
variable in the version
package to Version
to align with conventional Go style. The Version()
func has also been renamed to GetVersion()
.
Related links
v0.8.2
Modules affected
retry
[NEW]
Description
- Add new functions to allow for retrying a specific action.
Related links
v0.8.1
Modules affected
ssh
[NEW]
Description
- Add new functions to allow running a command over SSH.
Related links
v0.8.0
This release is backwards incompatible.
Description
This repo has been renamed to to go-commons
. You will need to update your references from gruntwork-cli
to go-commons
to use the updated version.
v0.7.2
Modules affected
shell
Description
- Add new functions to allow getting the
stdout
from a running command.
Related links
v0.7.1
Modules affected
version
[NEW MODULE]entrypoint
Description
- Added a new
version
package that can be used to set theVERSION
variable from the CLI, and return the version viaversion.Version()
. This reduces the boilerplate needed for managing version numbers in CLI apps. See theversion
package and updated README for more details. - Fixed some minor string formatting in
entrypoint
.
Related links
v0.7.0
Modules affected
logging
[BACKWARDS INCOMPATIBLE]
Description
logging.GetLogger
now returns a new logger using a custom formatter that prefixes the given name to the log entries.