{{ message }}
Repository navigation
Releases: atata-framework/atata-cli
Releases · atata-framework/atata-cli
Release list
4.0.0
Changelog
Added
- Add
public Task<CliCommandResult> WaitForExitAsync(CancellationToken)method toCliCommand. - Add
public CliCommandResult? Result { get; }property toCliCommand. - Add enum
CliCommandKillOnDisposewith values:None,OnlyProcess,EntireProcessTree. - Add
public CliCommandKillOnDispose KillOnDispose { get; set; } = CliCommandKillOnDispose.EntireProcessTreeproperty toCliCommand. - Add
public Task<CliCommandResult> ExecuteAsync(CancellationToken)method toProgramCli. - Add
public Task<CliCommandResult> ExecuteRawAsync(CancellationToken)method toProgramCli. - Add
public string MergedOutput { get; }property toCliCommandResultandCliCommand.
Changed
- Change package target frameworks from .NET Standard 2.0 to .NET 8.0 and .NET Framework 4.6.2.
- Enable nullable reference types.
- Update
WaitForExitandKillmethods ofCliCommandto check whether a process has exited. - Remove internal
Disposemethod call in the end ofWaitForExitandKillmethods ofCliCommand. - Add
CancellationTokenparameter toExecuteAsyncandExecuteRawAsyncmethods ofProgramCli.
Removed
- Remove obsolete
CliCommandException.Createstatic method.
Links
- Atata.Cli 4.0.0 on NuGet
- Full Changelog: v2.2.0...v4.0.0
2.2.0
Changelog
Added
- Add
CliCommand.Kill(bool entireProcessTree)method. - Add
CliCommand.Processproperty.
Links
- Atata.Cli 2.2.0 on NuGet
- Full Changelog: v2.1.0...v2.2.0
2.1.0
Changelog
Added
- Add
CliCommandResultValidationRulesenumeration with the flag values:None,ZeroExitCode,NoError,ZeroExitCodeAndNoError. - Add
public CliCommandResultValidationRules ResultValidationRules { get; set; } = CliCommandResultValidationRules.ZeroExitCodeproperty toProgramCli.
Changed
- Change default
CliCommandResultvalidation inExecuteandExecuteAsyncmethods to checkExitCode == 0instead ofHasError == false. - Add exit code to
CliCommandExceptionmessage.
Links
- Atata.Cli 2.1.0 on NuGet
- Full Changelog: v2.0.0...v2.1.0
2.0.0
Changelog
Added
- Add
UseCmdForWindowsAndShForOthers()static method toOSDependentShellCliCommandFactory.
Changed
- Make
ShellCliCommandFactoryabstract and remove its obsolete behavior. - Set default value of
ProgramCli.DefaultShellCliCommandFactorytoOSDependentShellCliCommandFactory.UseCmdForWindowsAndShForOthers().
Links
1.4.0
Changelog
Added
- Add
CmdShellCliCommandFactoryclass. - Add
UnixShellCliCommandFactoryclass. - Add
BashShellCliCommandFactoryclass. - Add
ShShellCliCommandFactoryclass. - Add
SudoShellCliCommandFactoryclass. - Add
OSDependentShellCliCommandFactoryclass. - Add
public static ICliCommandFactory DefaultShellCliCommandFactory { get; set; }
property toProgramCli. - Add
public ICliCommandFactory CliCommandFactory { get; set; }property toProgramCli. - Add
WithCliCommandFactory(ICliCommandFactory cliCommandFactory)method toProgramCliandProgramCli<TCli>.
Changed
- Improve
ShellCliCommandFactoryto be stick to a specific shell and can be used as a base class for a specific shell CLI command factory.
Links
1.3.0
Changelog
Added
- Add
string WorkingDirectoryproperty toCliCommandResult.
Changed
- Change the format of
CliCommandExceptionmessage. Add "Working directory" to message.
Links
1.2.0
Changelog
Added
- Add
HasErrorproperty toCliCommandResult. - Add
WithWorkingDirectory(string)method toProgramCliandProgramCli<TCli>. - Add
ExecuteRawAsync(string)method toProgramCli.
Changed
- Change access modifier of
ProgramCli.ExecuteRaw(string)method fromprotectedtopublic.
