blob: 21f598ba7f9b4f4ebf91074862e8cf3a9884f5ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using Fclp;
using PKISharp.WACS.Configuration;
namespace PKISharp.WACS.Plugins.InstallationPlugins
{
internal class ScriptArgumentsProvider : BaseArgumentsProvider<ScriptArguments>
{
public override string Name => "Script plugin";
public override string Group => "Installation";
public override string Condition => "--installation script";
public override void Configure(FluentCommandLineParser<ScriptArguments> parser)
{
parser.Setup(o => o.Script)
.As("script")
.WithDescription("Path to script file to run after retrieving the certificate. This may be a .exe or .bat. Refer to the Wiki for instructions on how to run .ps1 files.");
parser.Setup(o => o.ScriptParameters)
.As("scriptparameters")
.WithDescription("Parameters for the script to run after retrieving the certificate. Refer to the Wiki for further instructions.");
}
}
}
|