Skip to content

Commit

Permalink
change some accessibility modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
phmatray committed Feb 12, 2024
1 parent 7c47574 commit aaa9a6d
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Allows derived classes to further configure the command before execution.
This method can be overridden to apply additional configurations like environment variables, timeout settings, etc.

```csharp
protected virtual CliWrap.Command ConfigureCommand(CliWrap.Command command);
private protected virtual CliWrap.Command ConfigureCommand(CliWrap.Command command);
```
#### Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Creates a command with the specified arguments, configuring the executable path and working directory.

```csharp
protected virtual CliWrap.Command CreateCommand(System.Collections.Generic.IEnumerable<string> arguments);
private protected virtual CliWrap.Command CreateCommand(System.Collections.Generic.IEnumerable<string> arguments);
```
#### Parameters

Expand Down
2 changes: 1 addition & 1 deletion docs/master-commander/CommandBuilder.ExecutablePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Gets the path to the executable that the command will run.

```csharp
protected abstract string ExecutablePath { get; }
public abstract string ExecutablePath { get; }
```

#### Property Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Listens for and processes command execution events asynchronously, writing output and events to the console.

```csharp
protected System.Threading.Tasks.Task ListenCommandAsync(CliWrap.Command command, System.Threading.CancellationToken ct);
private protected System.Threading.Tasks.Task ListenCommandAsync(CliWrap.Command command, System.Threading.CancellationToken ct);
```
#### Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Gets the path to the executable that the command will run.

```csharp
protected override string ExecutablePath { get; }
public override string ExecutablePath { get; }
```

#### Property Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Gets the path to the executable that the command will run.

```csharp
protected override string ExecutablePath { get; }
public override string ExecutablePath { get; }
```

#### Property Value
Expand Down
2 changes: 1 addition & 1 deletion docs/master-commander/GitCommandFactory.ExecutablePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Gets the path to the executable that the command will run.

```csharp
protected override string ExecutablePath { get; }
public override string ExecutablePath { get; }
```

#### Property Value
Expand Down
2 changes: 1 addition & 1 deletion docs/master-commander/NpmCommandFactory.ExecutablePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Gets the path to the executable that the command will run.

```csharp
protected override string ExecutablePath { get; }
public override string ExecutablePath { get; }
```

#### Property Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class DockerCommandFactory(IDirectoryService directoryService)
: CommandBuilder(directoryService), IDockerCommandFactory
{
/// <inheritdoc />
protected override string ExecutablePath => "docker";
public override string ExecutablePath => "docker";

/// <inheritdoc />
public Command CreateCommandBuild(string dockerfilePath, string tag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class DotnetCommandFactory(IDirectoryService directoryService)
: CommandBuilder(directoryService), IDotnetCommandFactory
{
/// <inheritdoc />
protected override string ExecutablePath => "dotnet";
public override string ExecutablePath => "dotnet";

/// <inheritdoc />
public Command CreateCommandNew(DotnetNewOptions options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class GitCommandFactory(IDirectoryService directoryService)
: CommandBuilder(directoryService), IGitCommandFactory
{
/// <inheritdoc />
protected override string ExecutablePath => "git";
public override string ExecutablePath => "git";

/// <inheritdoc />
public Command CreateCommandInit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class NpmCommandFactory(IDirectoryService directoryService)
: CommandBuilder(directoryService), INpmCommandFactory
{
/// <inheritdoc />
protected override string ExecutablePath => "npm";
public override string ExecutablePath => "npm";

/// <inheritdoc />
public Command CreateCommandInit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public abstract class CommandBuilder(IDirectoryService directoryService)
/// <summary>
/// Gets the path to the executable that the command will run.
/// </summary>
protected abstract string ExecutablePath { get; }
public abstract string ExecutablePath { get; }

/// <summary>
/// Creates a command with the specified arguments, configuring the executable path and working directory.
/// </summary>
/// <param name="arguments">The arguments to pass to the executable.</param>
/// <returns>A configured command.</returns>
protected virtual Command CreateCommand(IEnumerable<string> arguments)
private protected virtual Command CreateCommand(IEnumerable<string> arguments)
{
var workingDirectory = GetWorkingDirectory();
var command = Cli.Wrap(ExecutablePath)
Expand All @@ -36,7 +36,7 @@ protected virtual Command CreateCommand(IEnumerable<string> arguments)
/// </summary>
/// <param name="command">The command to configure.</param>
/// <returns>The configured command.</returns>
protected virtual Command ConfigureCommand(Command command)
private protected virtual Command ConfigureCommand(Command command)
{
// Allow derived classes to further configure the command
return command;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public abstract class CommandOutputHandler(IConsole console)
/// <param name="command">The command whose output is to be handled.</param>
/// <param name="ct">A cancellation token that can be used to cancel the listening operation.</param>
/// <returns>A task representing the asynchronous operation of listening to and handling command output and events.</returns>
protected async Task ListenCommandAsync(Command command, CancellationToken ct)
private protected async Task ListenCommandAsync(Command command, CancellationToken ct)
{
console.WriteCommand(command.ToString());
var stopWatch = Stopwatch.StartNew();
Expand Down

0 comments on commit aaa9a6d

Please sign in to comment.