Skip to content

Commit

Permalink
Refactor command options for environment consistency
Browse files Browse the repository at this point in the history
Subclasses of the abstract EnvironmentOptions were refactored to have consistent naming of the Environment property. RemoteCommandOptions now extends EnvironmentOptions instead of EnvironmentNameOptions. Similarly, in TurnFsmCommand.cs, the property EnvironmentName has been changed to Environment to align with the other changes.

Signed-off-by: Kirill Krylov <[email protected]>
  • Loading branch information
kirillkrylov committed Jul 18, 2024
1 parent 83f5e14 commit 66c58bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clio/Command/RemoteCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Clio.Command;

public class RemoteCommandOptions : EnvironmentNameOptions
public class RemoteCommandOptions : EnvironmentOptions
{
public int TimeOut { get; internal set; } = 100_000;
public int RetryCount { get; internal set; } = 3;
Expand Down
2 changes: 1 addition & 1 deletion clio/Command/TurnFsmCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override int Execute(TurnFsmCommandOptions options){
if(options.IsNetCore == true) {
var opt = new RestartOptions
{
EnvironmentName = options.Environment,
Environment = options.Environment,
Uri = options.Uri,
Login = options.Login,
Password = options.Password,
Expand Down

0 comments on commit 66c58bd

Please sign in to comment.