@trajectonomics/cli 0.8.0-alpha.30 → 0.8.0-alpha.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -221,6 +221,24 @@ Currency's major unit, such as `"1000.00"` for 100000 satang, and
221
221
  same either way: saving what `show --decimal` printed leaves it unchanged. A value with more places
222
222
  than the Currency has is refused, never rounded.
223
223
 
224
+ ## A what-if, applied to the plan it came from
225
+
226
+ > **Ships in 0.8.0.**
227
+
228
+ `traj projection run --set` projects a change without saving it. `traj scenario apply` saves the same
229
+ change to the stored plan, so the plan you keep is the one you projected. It takes the `--set`,
230
+ `--without` and `--decimal` that `projection run` takes, and refuses what they would be refused for:
231
+
232
+ ```bash
233
+ traj scenario apply base --set flows.salary.amount=9000000 --dry-run
234
+ traj scenario apply base --set flows.salary.amount=9000000 --without flows.gym
235
+ ```
236
+
237
+ The result names the Overrides it wrote. A change that leaves the plan as it is writes nothing and
238
+ exits 0. `--if-hash <contentHash>` writes only when the stored plan still has that hash, as
239
+ `traj scenario show` printed it, and refuses the write otherwise. Without `--file`, `--set` and
240
+ `--without` never take a document, so the what-if cannot replace a plan you did not read.
241
+
224
242
  ## Milestones: points in the plan that a Flow waits for
225
243
 
226
244
  > **Ships in 0.8.0.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trajectonomics/cli",
3
- "version": "0.8.0-alpha.30",
3
+ "version": "0.8.0-alpha.32",
4
4
  "description": "trajectonomics command line",
5
5
  "license": "MIT",
6
6
  "type": "module",