Example #1
0
 public void ProvideConstraints(IConstraintsProviderContext <ICli2> cpc)
 {
     cpc.Add(
         new Implies <IParserResult>(
             cpc.ArgumentIsSet(nameof(ICli2.FileArg)),
             new FileExists((FileSystemItemArgument)cpc.GetArgument(nameof(ICli2.FileArg)))));
 }
Example #2
0
 public void ProvideConstraints(IConstraintsProviderContext <ICli4> cpc)
 {
     cpc.Add(cpc.ArgumentIsSet(nameof(ICli4.Option)));
 }
Example #3
0
 public void ProvideConstraints(IConstraintsProviderContext <ICliOr> cpc)
 {
     cpc.Add(cpc.OrItemItem(nameof(ICliOr.Option), nameof(ICliOr.Flag)));
 }
Example #4
0
 public void ProvideConstraints(IConstraintsProviderContext <ICliImplies> cpc)
 {
     cpc.Add(cpc.ImpliesItemItem(nameof(ICliImplies.Option), nameof(ICliImplies.Flag)));
 }
 public void ProvideConstraints(IConstraintsProviderContext <ICliAnd> cpc)
 {
     cpc.Add(cpc.AndItemItem(nameof(ICliAnd.Option), nameof(ICliAnd.Flag)));
 }