Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump github.com/vladimirvivien/gexe from 0.2.0 to 0.4.0 #27

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 18, 2024

Bumps github.com/vladimirvivien/gexe from 0.2.0 to 0.4.0.

Release notes

Sourced from github.com/vladimirvivien/gexe's releases.

v0.4.0

This release did not introduce new functionalities, but rather implemented fixes and improvements that have been lingering for a while.

Release overview

  • Better support for setting Stdout/Stderr when working with exec package
  • Fixed out-of-order bug that would make exec.Proc.Resut() and exec.Proc.Out() calls return empty result from the process
  • Additional checked error propagation in API call chain in several packages
  • Enhancements to exec.CommandBuilder to fix piped commands constructs
  • Ability to set stdout/stderr for batch commands with exec.CommandBuilder
  • Further standardization of function and method signatures for packages http and fs
  • Enhancements to internal tests

API changes

Package exec changes

Previously, method Proc.Out() in package exec would automatically start a defined process (if not started) then return output of the process as a combined Stdout/Stderr streams. This behavior has been simplified:

  • The API user is responsible for starting the process prior to calling proc.Out()
  • Method Proc.Out() only returns the combined output stream if no other streams were set for the process
  • If other streams were set, an API user is responsible for accessing the configured output stream for process result.

Method proc.Result() still returns the combined output stream as string (by calling proc.Out()) if an output stream was not explicitly set.

See example here

Package vars changes

This release introduces subtle changes to how methods vars.Variables.Envs and vars.Variables.Vars work. Before this release, these methods accepted a single string with key=value pairs separated by spaces:

gexe.Vars(`msg0=hello msg1=world`).

In this release, however, the signatures for both Envs and Vars have been updated as variadic methods that accept zero or more string values. Each string parameter is not expected to provide a single key=value pair:

gexe.Envs(`GOOS="linux"`, `GOARCH=arm64`).Run(`go build .`)

Note that this change provides the flexibility of specifying variables with quoted values and supports spaces in the values.

Related PRs

v0.3.0

What's Changed

Improvement of session variables

Now all types (existing and new ones) allows an injection of value of type vars.Variables to allow tracking and use of variables during a gexe session. The following shows an example of process being launched with variables:

variables := vars.New().SetVar("proc", "echo")
exec.RunProcWithVars(`$proc "Hello World!"`, variables)

... (truncated)

Commits
  • f294aef Lock contention fix (#54)
  • 1ce1b90 Diverse functionality improvements (#53)
  • 14fa016 Merge pull request #52 from vladimirvivien/update-doc
  • d243e3b Update project documentation
  • bc8da74 Merge pull request #51 from vladimirvivien/improvements-add-missing-features
  • 6132d28 General improvements for project
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/vladimirvivien/gexe](https://github.com/vladimirvivien/gexe) from 0.2.0 to 0.4.0.
- [Release notes](https://github.com/vladimirvivien/gexe/releases)
- [Commits](vladimirvivien/gexe@v0.2.0...v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/vladimirvivien/gexe
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go labels Nov 18, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 25, 2024

Superseded by #34.

@dependabot dependabot bot closed this Nov 25, 2024
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/vladimirvivien/gexe-0.4.0 branch November 25, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants