Skip to content

Latest commit

 

History

History
91 lines (56 loc) · 2.65 KB

CHANGELOG.md

File metadata and controls

91 lines (56 loc) · 2.65 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[2.2.0] - 2022-07-29

Added

  • Add CliCommand.Kill(bool entireProcessTree) method.
  • Add CliCommand.Process property.

[2.1.0] - 2022-07-21

Added

  • Add CliCommandResultValidationRules enumeration with the flag values: None, ZeroExitCode, NoError, ZeroExitCodeAndNoError.
  • Add public CliCommandResultValidationRules ResultValidationRules { get; set; } = CliCommandResultValidationRules.ZeroExitCode property to ProgramCli.

Changed

  • Change default CliCommandResult validation in Execute and ExecuteAsync methods to check ExitCode == 0 instead of HasError == false.
  • Add exit code to CliCommandException message.

[2.0.0] - 2022-05-10

Added

  • Add UseCmdForWindowsAndShForOthers() static method to OSDependentShellCliCommandFactory.

Changed

  • Make ShellCliCommandFactory abstract and remove its obsolete behavior.
  • Set default value of ProgramCli.DefaultShellCliCommandFactory to OSDependentShellCliCommandFactory.UseCmdForWindowsAndShForOthers().

[1.4.0] - 2022-03-25

Added

  • Add CmdShellCliCommandFactory class.
  • Add UnixShellCliCommandFactory class.
  • Add BashShellCliCommandFactory class.
  • Add ShShellCliCommandFactory class.
  • Add SudoShellCliCommandFactory class.
  • Add OSDependentShellCliCommandFactory class.
  • Add public static ICliCommandFactory DefaultShellCliCommandFactory { get; set; } property to ProgramCli.
  • Add public ICliCommandFactory CliCommandFactory { get; set; } property to ProgramCli.
  • Add WithCliCommandFactory(ICliCommandFactory cliCommandFactory) method to ProgramCli and ProgramCli<TCli>.

Changed

  • Improve ShellCliCommandFactory to be stick to a specific shell and can be used as a base class for a specific shell CLI command factory.

[1.3.0] - 2021-07-23

Added

  • Add string WorkingDirectory property to CliCommandResult.

Changed

  • Change the format of CliCommandException message. Add "Working directory" to message.

[1.2.0] - 2021-07-21

Added

  • Add HasError property to CliCommandResult.
  • Add WithWorkingDirectory(string) method to ProgramCli and ProgramCli<TCli>.
  • Add ExecuteRawAsync(string) method to ProgramCli.

Changed

  • Change access modifier of ProgramCli.ExecuteRaw(string) method from protected to public.

[1.1.0] - 2021-06-24

Fixed

  • Fix bash commands execution

[1.0.0] - 2021-06-24

Initial version release.