9 references to AllowRunScripts
Microsoft.TemplateEngine.Cli (9)
Commands\create\TemplateCommand.cs (3)
109
AllowScriptsOption = new Option<
AllowRunScripts
>("--allow-scripts")
113
DefaultValueFactory = (_) =>
AllowRunScripts
.Prompt
133
internal Option<
AllowRunScripts
>? AllowScriptsOption { get; }
Commands\create\TemplateCommandArgs.cs (1)
67
public
AllowRunScripts
? AllowScripts { get; }
PostActionDispatcher.cs (4)
69
internal PostActionExecutionStatus Process(ITemplateCreationResult creationResult, bool isDryRun,
AllowRunScripts
canRunScripts)
125
if (canRunScripts ==
AllowRunScripts
.No)
135
else if (canRunScripts ==
AllowRunScripts
.Yes)
139
else if (canRunScripts ==
AllowRunScripts
.Prompt)
TemplateInvoker.cs (1)
314
PostActionExecutionStatus result = _postActionDispatcher.Process(creationResult, args.IsDryRun, args.AllowScripts ??
AllowRunScripts
.Prompt);