38 references to Args
dotnet (15)
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (7)
37
IReadOnlyList<string>? projectsToProcess = GetConfiguredFiles(action.
Args
, creationEffects, "targetFiles", outputBasePath);
43
if (action.
Args
.TryGetValue("projectFileExtensions", out string? projectFileExtensions))
70
projectsToProcess = FindExistingTargetFiles(environment.Host.FileSystem, action.
Args
, outputBasePath);
116
if (actionConfig.
Args
== null || !actionConfig.
Args
.TryGetValue("reference", out string? referenceToAdd))
122
if (!actionConfig.
Args
.TryGetValue("referenceType", out string? referenceType))
139
actionConfig.
Args
.TryGetValue("version", out string? version);
Commands\New\PostActions\DotnetRestorePostActionProcessor.cs (1)
21
IEnumerable<string> targetFiles = GetConfiguredFiles(actionConfig.
Args
, creationEffects, "files", outputBasePath);
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (7)
34
if (actionConfig.
Args
!= null && actionConfig.
Args
.TryGetValue("primaryOutputIndexes", out string? projectIndexes))
77
IReadOnlyList<string> projectFiles = GetConfiguredFiles(action.
Args
, creationEffects, "projectFiles", outputBasePath, (path) => Path.GetExtension(path).EndsWith("proj", StringComparison.OrdinalIgnoreCase));
138
if (actionConfig.
Args
!= null && actionConfig.
Args
.TryGetValue("solutionFolder", out string? solutionFolder))
147
if (actionConfig.
Args
!= null && actionConfig.
Args
.TryGetValue("inRoot", out string? inRoot))
Microsoft.TemplateEngine.Cli (23)
PostActionDispatcher.cs (6)
186
if (action.
Args
!= null && action.
Args
.TryGetValue("executable", out string? executable))
188
action.
Args
.TryGetValue("args", out string? commandArgs);
253
if (action.
Args
!= null && action.
Args
.TryGetValue("executable", out string? executable))
255
action.
Args
.TryGetValue("args", out string? commandArgs);
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (9)
86
if (!action.
Args
.TryGetValue(JsonFileNameArgument, out string? jsonFileName))
92
if (!bool.TryParse(action.
Args
.GetValueOrDefault(DetectRepoRoot, "false"), out bool detectRepoRoot))
98
if (!bool.TryParse(action.
Args
.GetValueOrDefault(IncludeAllDirectoriesInSearch, "true"), out bool includeAllDirectories))
106
if (!bool.TryParse(action.
Args
.GetValueOrDefault(IncludeAllParentDirectoriesInSearch, "false"), out bool includeAllParentDirectories))
122
if (!bool.TryParse(action.
Args
.GetValueOrDefault(AllowFileCreationArgument, "false"), out bool createFile))
184
if (!bool.TryParse(action.
Args
.GetValueOrDefault(AllowPathCreationArgument, "false"), out bool createPath))
306
action.
Args
.TryGetValue(ParentPropertyPathArgument, out string? parentProperty);
307
action.
Args
.TryGetValue(NewJsonPropertyNameArgument, out string? newJsonPropertyName);
308
action.
Args
.TryGetValue(NewJsonPropertyValueArgument, out string? newJsonPropertyValue);
PostActionProcessors\ChmodPostActionProcessor.cs (1)
20
foreach (KeyValuePair<string, string> entry in actionConfig.
Args
)
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (3)
21
if (actionConfig.
Args
!= null && actionConfig.
Args
.TryGetValue("executable", out string? executable))
23
actionConfig.
Args
.TryGetValue("args", out string? commandArgs);
PostActionProcessors\ProcessStartPostActionProcessor.cs (4)
19
if (!actionConfig.
Args
.TryGetValue("executable", out string? executable) || string.IsNullOrWhiteSpace(executable))
24
actionConfig.
Args
.TryGetValue("args", out string? args);
29
if (actionConfig.
Args
.TryGetValue("redirectStandardOutput", out string? redirectStandardOutputString)
37
if (actionConfig.
Args
.TryGetValue("redirectStandardError", out string? redirectStandardErrorString)