Skip to content

Commit dbabf61

Browse files
committed
Remove argument completer for now. Will add it back when a new, PS 3.0 compatible argument completer helper is added.
1 parent 87820ae commit dbabf61

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/Cmdlets/NewAzureRmSubscriptionDefinition.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class NewAzureRmSubscriptionDefinition : AzureSubscriptionDefinitionCmdle
3030
public string Name { get; set; }
3131

3232
[Parameter(Mandatory = true, HelpMessage = "Offer type of the subscription definition.")]
33-
[ArgumentCompleter(typeof(OfferTypeCompleter))]
3433
public string OfferType { get; set; }
3534

3635
[Parameter(Mandatory = false, HelpMessage = "Display name of the subscription.")]
@@ -45,18 +44,5 @@ public override void ExecuteCmdlet()
4544
subscriptionDisplayName: this.SubscriptionDisplayName ?? this.Name)));
4645
}
4746
}
48-
49-
private class OfferTypeCompleter : IArgumentCompleter
50-
{
51-
private static readonly string[] KnownOfferTypes = { "MS-AZR-0017P", "MS-AZR-0148P" };
52-
53-
public IEnumerable<CompletionResult> CompleteArgument(string commandName, string parameterName, string wordToComplete, CommandAst commandAst, IDictionary fakeBoundParameters)
54-
{
55-
var pattern = new WildcardPattern(wordToComplete + "*", WildcardOptions.IgnoreCase);
56-
return KnownOfferTypes
57-
.Where(pattern.IsMatch)
58-
.Select(s => new CompletionResult(s));
59-
}
60-
}
6147
}
6248
}

0 commit comments

Comments
 (0)