Skip to content

Releases: commander-cli/cmd

v1.6.0

27 Nov 16:53
Compare
Choose a tag to compare

Adds:

  • cmd.WithUser(syscall.Credential) - Add the ability to change the user a command is run as on *nix systems (#35)
  • cmd.WithUser(syscall.Token) - Add the ability to change the user a command is run as on windows systems (#35)

Fixes:

  • Ensure we write to stderr when WithStandardStreams option is used. Thanks to @thomasnemer for the fix (#37)

v1.5.0

24 Sep 03:10
Compare
Choose a tag to compare

Adds:

  • cmd.WithCustomBaseCommand(*exec.Cmd) - Bring your own base command. Details

v1.4.0

04 Jul 15:56
Compare
Choose a tag to compare

Adds:

  • ExecuteContext - runs Execute but with Context

v1.3.0

08 Jul 09:11
4d67a95
Compare
Choose a tag to compare
  • Move repository from github.com/SimonBaeumer/cmd to github.com/commander-cli/cmd

v1.2.3

01 Apr 11:51
3c50ae7
Compare
Choose a tag to compare
  • Removed cmd.MultiplexedWriter in favor of the built-in io.MultiWriter

v1.2.2

24 Oct 10:21
4de84e4
Compare
Choose a tag to compare
  • Fix overwrite of stderr in WithCustomStdout
  • Fix overwrite of stdout in WithCustomStderr

v1.2.1

24 Oct 09:28
94bfe87
Compare
Choose a tag to compare
  • Add MultiplexedWriter in NewCommand constructor for stdout and stderr

v1.2.0

24 Oct 08:59
a7c478f
Compare
Choose a tag to compare
  • Add cmd.WithCustomStdout option
  • Add cmd.WithCustomStderr option
  • Add Command.Combined() function which returns the combined output of stdout and stderr
  • Add cmd.WithEnvironmentVariables option
  • Add cmd.WithInheritedEnvironment option
  • Add CaptureStandardOut function