@@ -194,9 +194,16 @@ type Command
194
194
type alias PackageValidateFlags =
195
195
{ projectPath : Path
196
196
, knownVersions : Array SemanticVersion
197
- , outline : Outline
198
- , rootSources : Dict String String
199
- , dependencies : Dict String { outline : Outline.PkgOutline, sources : Dict String String }
197
+ , publishedVersion :
198
+ { outline : Outline
199
+ , rootSources : Dict String String
200
+ , dependencies : Dict String { outline : Outline.PkgOutline, sources : Dict String String }
201
+ }
202
+ , currentVersion :
203
+ { outline : Outline
204
+ , rootSources : Dict String String
205
+ , dependencies : Dict String { outline : Outline.PkgOutline, sources : Dict String String }
206
+ }
200
207
}
201
208
202
209
@@ -344,13 +351,26 @@ commandEncoder interactive pathToString command =
344
351
345
352
PackageValidate flags ->
346
353
Json.object
347
- [ { key = "command", value = Json.string "packageValidate " }
354
+ [ { key = "command", value = Json.string "packageBump " }
348
355
, { key = "interactive", value = Json.bool interactive }
349
356
, { key = "known-versions", value = Json.array SemanticVersion.toJson flags.knownVersions }
350
357
, { key = "project-path", value = Json.string <| pathToString flags.projectPath }
351
- , { key = "project-outline", value = Outline.toJson flags.outline }
352
- , { key = "sources", value = Json.dict identity Json.string flags.rootSources }
353
- , { key = "dependencies", value = Json.dict identity depsToJson flags.dependencies }
358
+ , { key = "current-version"
359
+ , value =
360
+ Json.object
361
+ [ { key = "project-outline", value = Outline.toJson flags.currentVersion.outline }
362
+ , { key = "sources", value = Json.dict identity Json.string flags.currentVersion.rootSources }
363
+ , { key = "dependencies", value = Json.dict identity depsToJson flags.currentVersion.dependencies }
364
+ ]
365
+ }
366
+ , { key = "published-version"
367
+ , value =
368
+ Json.object
369
+ [ { key = "project-outline", value = Outline.toJson flags.publishedVersion.outline }
370
+ , { key = "sources", value = Json.dict identity Json.string flags.publishedVersion.rootSources }
371
+ , { key = "dependencies", value = Json.dict identity depsToJson flags.publishedVersion.dependencies }
372
+ ]
373
+ }
354
374
]
355
375
356
376
PackageBump flags ->
@@ -359,9 +379,22 @@ commandEncoder interactive pathToString command =
359
379
, { key = "interactive", value = Json.bool interactive }
360
380
, { key = "known-versions", value = Json.array SemanticVersion.toJson flags.knownVersions }
361
381
, { key = "project-path", value = Json.string <| pathToString flags.projectPath }
362
- , { key = "project-outline", value = Outline.toJson flags.outline }
363
- , { key = "sources", value = Json.dict identity Json.string flags.rootSources }
364
- , { key = "dependencies", value = Json.dict identity depsToJson flags.dependencies }
382
+ , { key = "current-version"
383
+ , value =
384
+ Json.object
385
+ [ { key = "project-outline", value = Outline.toJson flags.currentVersion.outline }
386
+ , { key = "sources", value = Json.dict identity Json.string flags.currentVersion.rootSources }
387
+ , { key = "dependencies", value = Json.dict identity depsToJson flags.currentVersion.dependencies }
388
+ ]
389
+ }
390
+ , { key = "published-version"
391
+ , value =
392
+ Json.object
393
+ [ { key = "project-outline", value = Outline.toJson flags.publishedVersion.outline }
394
+ , { key = "sources", value = Json.dict identity Json.string flags.publishedVersion.rootSources }
395
+ , { key = "dependencies", value = Json.dict identity depsToJson flags.publishedVersion.dependencies }
396
+ ]
397
+ }
365
398
]
366
399
367
400
PackageDiff args ->
0 commit comments