summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Services/Interfaces/IArgumentsService.cs
blob: 08d27670b40207ab3d8c40778370c68dcd08010c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using PKISharp.WACS.Configuration;
using System.Threading.Tasks;

namespace PKISharp.WACS.Services
{
    public interface IArgumentsService
    {
        MainArguments MainArguments { get; }
        T? GetArguments<T>() where T : class, new();
        bool Active { get; }
        bool Valid { get; }
        bool HasFilter();
        Task<string?> TryGetArgument(string? providedValue, IInputService input, string what, bool secret = false);
        Task<string?> TryGetArgument(string? providedValue, IInputService input, string[] what, bool secret = false);
        string TryGetRequiredArgument(string optionName, string? providedValue);
        void ShowHelp();
        void ShowCommandLine();
    }
}