@@ -20,61 +20,4 @@ class OverridePositionGroup
2020 [ RequiredArgument ( 1 , "repos" , "The list of repositories where to add the milestones to. The format is: owner\\ repoName." , true ) ]
2121 public List < string > Repositories { get ; set ; }
2222 }
23-
24- class OverridePositionGroupWithMoreArgs
25- {
26- [ ActionArgument ]
27- public Action Action { get ; set ; }
28-
29- [ ArgumentGroup ( nameof ( Action . List ) , 1 ) ]
30- [ ArgumentGroup ( nameof ( Action . Create ) ) ]
31- [ RequiredArgument ( 0 , "milestoneInputFile" , "The file containing the list of milestones to create." ) ]
32- public string One { get ; set ; }
33-
34- [ ArgumentGroup ( nameof ( Action . List ) , 0 ) ]
35- [ ArgumentGroup ( nameof ( Action . Create ) ) ]
36- [ RequiredArgument ( 1 , "milestoneInputFile2" , "The file containing the list of milestones to create." ) ]
37- public string Two { get ; set ; }
38-
39- [ ArgumentGroup ( nameof ( Action . List ) , 2 ) ]
40- [ ArgumentGroup ( nameof ( Action . Create ) ) ]
41- [ RequiredArgument ( 2 , "repos" , "The list of repositories where to add the milestones to. The format is: owner\\ repoName." ) ]
42- public string Three { get ; set ; }
43- }
44-
45- class OverridePositionGroup2
46- {
47- [ ActionArgument ]
48- public Action Action { get ; set ; }
49-
50- [ ArgumentGroup ( nameof ( Action . List ) , 0 ) ]
51- [ ArgumentGroup ( nameof ( Action . Create ) , 1 ) ]
52- [ RequiredArgument ( 0 , "milestoneInputFile" , "The file containing the list of milestones to create." ) ]
53- public string MilestoneFile { get ; set ; }
54-
55- [ ArgumentGroup ( nameof ( Action . Create ) , 0 ) ]
56- [ ArgumentGroup ( nameof ( Action . List ) , 1 ) ]
57- [ RequiredArgument ( 1 , "repo" , "The list of repositories where to add the milestones to. The format is: owner\\ repoName." ) ]
58- public string Repository { get ; set ; }
59- }
60-
61- class OverridePositionGroup_Conflict
62- {
63- [ ActionArgument ]
64- public Action Action { get ; set ; }
65-
66- [ ArgumentGroup ( nameof ( Action . List ) , 0 ) ]
67- [ RequiredArgument ( 1 , "repos" , "The list of repositories where to add the milestones to. The format is: owner\\ repoName." , true ) ]
68- public List < string > Repositories { get ; set ; }
69-
70- [ ArgumentGroup ( nameof ( Action . List ) ) ]
71- [ RequiredArgument ( 0 , "test" , "The list of repositories where to add the milestones to. The format is: owner\\ repoName." , true ) ]
72- public List < string > Repositories2 { get ; set ; }
73- }
74-
75- public enum Action
76- {
77- Create ,
78- List
79- }
8023}
0 commit comments