@@ -39,8 +39,9 @@ Targets:
3939* benchmark [non-interactive] [url] [username] [password]
4040 - Runs a benchmark from Tests.Benchmarking and indexes the results to [url] when provided.
4141 If non-interactive runs all benchmarks without prompting
42- * codegen
43- - runs the code generator interactively
42+ * codegen <branch> [arguments]
43+ - runs the code generator, the first argument is required and dictates the branch to sync from.
44+ - Any other arguments are passed down to the tool directly
4445* documentation
4546 - runs the doc generation, without running any tests
4647
@@ -88,13 +89,15 @@ Execution hints can be provided anywhere on the command line
8889
8990 type BenchmarkArguments = { Endpoint: string ; Username: string option ; Password: string option ; }
9091 type ClusterArguments = { Name: string ; Version: string option ; }
92+ type CodeGenArguments = { Branch: string ; }
9193 type CommandArguments =
9294 | Unknown
9395 | SetVersion of VersionArguments
9496 | Test of TestArguments
9597 | Integration of IntegrationArguments
9698 | Benchmark of BenchmarkArguments
9799 | Cluster of ClusterArguments
100+ | CodeGen of CodeGenArguments
98101
99102 type PassedArguments = {
100103 NonInteractive: bool ;
@@ -193,11 +196,13 @@ Execution hints can be provided anywhere on the command line
193196 | [ " build" ]
194197 | [ " clean" ]
195198 | [ " benchmark" ]
196- | [ " codegen" ; ]
197199 | [ " documentation" ; ]
198200 | [ " profile" ] -> parsed
199201 | " rest-spec-tests" :: tail -> { parsed with RemainingArguments = tail }
200202
203+ | " codegen" :: branch :: tail ->
204+ { parsed with CommandArguments = CodeGen { Branch = branch }; RemainingArguments = tail }
205+
201206 | [ " release" ; version] -> { parsed with CommandArguments = SetVersion { Version = version; OutputLocation = None }; }
202207 | [ " release" ; version; path] ->
203208 if ( not <| System.IO.Directory.Exists path) then failwithf " '%s ' is not an existing directory" ( Path.getFullName path)
0 commit comments