mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
27 lines
788 B
C#
27 lines
788 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
|
|
namespace CliFx.Tests
|
|
{
|
|
public partial class EnvironmentVariablesSpecs
|
|
{
|
|
[Command]
|
|
private class EnvironmentVariableCollectionCommand : ICommand
|
|
{
|
|
[CommandOption("opt", EnvironmentVariableName = "ENV_OPT")]
|
|
public IReadOnlyList<string>? Option { get; set; }
|
|
|
|
public ValueTask ExecuteAsync(IConsole console) => default;
|
|
}
|
|
|
|
[Command]
|
|
private class EnvironmentVariableCommand : ICommand
|
|
{
|
|
[CommandOption("opt", EnvironmentVariableName = "ENV_OPT")]
|
|
public string? Option { get; set; }
|
|
|
|
public ValueTask ExecuteAsync(IConsole console) => default;
|
|
}
|
|
}
|
|
} |