9 references to ForwardIfEnabled
Microsoft.DotNet.Cli.CommandLine (2)
ForwardedOptionExtensions.cs (2)
188
/// <inheritdoc cref="
ForwardIfEnabled
(Option{bool}, string)"/>
189
public Option<bool> ForwardAs(string value) => option.
ForwardIfEnabled
(value);
Microsoft.DotNet.Cli.Definitions (7)
Commands\Package\PackageAddCommandDefinition.cs (1)
57
public static Option<bool> CreateInteractiveOption() => CommonOptions.CreateInteractiveOption().
ForwardIfEnabled
("--interactive");
Commands\Package\PackageListCommandDefinition.cs (1)
81
public readonly Option<bool> InteractiveOption = CommonOptions.CreateInteractiveOption().
ForwardIfEnabled
("--interactive");
Commands\Package\PackageRemoveCommandDefinition.cs (1)
32
public readonly Option<bool> InteractiveOption = CommonOptions.CreateInteractiveOption().
ForwardIfEnabled
("--interactive");
Commands\Package\PackageSearchCommandDefinition.cs (1)
45
public readonly Option<bool> Interactive = CommonOptions.CreateInteractiveOption().
ForwardIfEnabled
("--interactive");
Commands\Test\TestCommandDefinition.VSTest.cs (2)
97
}.
ForwardIfEnabled
("-property:VSTestBlame=true");
103
}.
ForwardIfEnabled
("-property:VSTestBlameCrash=true");
Common\CommonOptions.cs (1)
362
return forwardAs is null ? option : option.
ForwardIfEnabled
(forwardAs);