// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.CommandLine;

namespace Microsoft.Testing.Platform.Services;

internal sealed class ExecutableInfo(string filePath, IEnumerable<string> arguments, string workspace)
{
    public string FilePath { get; } = filePath;

    public IEnumerable<string> Arguments { get; } = arguments;

    public string Workspace { get; } = workspace;

    public override string ToString()
        => $"Process: {FilePath}, Arguments: {CommandLineArgumentsRedactor.Redact([.. Arguments])}, Workspace: {Workspace}";
}
