@@ -185,14 +185,15 @@ type Command
185
185
= Repl ReplFlags
186
186
| Make MakeFlags
187
187
| Docs DocsFlags
188
- | PackageValidate ProjectSources
189
- | PackageBump ProjectSources
188
+ | PackageValidate PackageValidateFlags
189
+ | PackageBump PackageValidateFlags
190
190
| PackageDiff DiffArgs
191
191
192
192
193
193
{-|-}
194
- type alias ProjectSources =
194
+ type alias PackageValidateFlags =
195
195
{ projectPath : Path
196
+ , knownVersions : Array SemanticVersion
196
197
, outline : Outline
197
198
, rootSources : Dict String String
198
199
, dependencies : Dict String { outline : Outline.PkgOutline, sources : Dict String String }
@@ -344,6 +345,8 @@ commandEncoder interactive pathToString command =
344
345
PackageValidate flags ->
345
346
Json.object
346
347
[ { key = "command", value = Json.string "packageValidate" }
348
+ , { key = "interactive", value = Json.bool interactive }
349
+ , { key = "known-versions", value = Json.array SemanticVersion.toJson flags.knownVersions }
347
350
, { key = "project-path", value = Json.string <| pathToString flags.projectPath }
348
351
, { key = "project-outline", value = Outline.toJson flags.outline }
349
352
, { key = "sources", value = Json.dict identity Json.string flags.rootSources }
@@ -354,6 +357,7 @@ commandEncoder interactive pathToString command =
354
357
Json.object
355
358
[ { key = "command", value = Json.string "packageBump" }
356
359
, { key = "interactive", value = Json.bool interactive }
360
+ , { key = "known-versions", value = Json.array SemanticVersion.toJson flags.knownVersions }
357
361
, { key = "project-path", value = Json.string <| pathToString flags.projectPath }
358
362
, { key = "project-outline", value = Outline.toJson flags.outline }
359
363
, { key = "sources", value = Json.dict identity Json.string flags.rootSources }
0 commit comments