mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
17 lines
491 B
C#
17 lines
491 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
using CliFx.Services;
|
|
|
|
namespace CliFx.Tests.TestCommands
|
|
{
|
|
[Command(Description = "Reads option values from environment variables.")]
|
|
public class EnvironmentVariableCommand : ICommand
|
|
{
|
|
[CommandOption("opt", EnvironmentVariableName = "ENV_SINGLE_VALUE")]
|
|
public string Option { get; set; }
|
|
|
|
public Task ExecuteAsync(IConsole console, CancellationToken cancellationToken) => Task.CompletedTask;
|
|
}
|
|
}
|