@trajectonomics/cli 0.8.0-alpha.90 → 0.8.0-alpha.92

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 +16 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -308,6 +308,22 @@ so no field is dropped by accident and the plan saved is the plan projected. The
308
308
  item's money is a decimal string of the Currency's major unit. Nothing is written until
309
309
  `scenario apply` or `scenario fork` is run with the same flags.
310
310
 
311
+ ## Naming plans, keeping notes on them, and marking the main one
312
+
313
+ > **Ships in 0.8.0.**
314
+
315
+ A person who compares "retire at 55" with "retire at 60 and buy a condo" ends up with several plans.
316
+ `traj scenario rename early retire-at-55` gives a plan a better name and keeps its id, document and
317
+ `contentHash`. `traj scenario notes retire-at-55 --text "Sell the condo in 2031."` keeps plain text
318
+ on it (`--file <path>` or `--file -` reads it, `--clear` removes it), and `scenario show` prints it
319
+ back as `notes`. Notes are not part of the plan, so they never change its `contentHash`, and a
320
+ `scenario fork` copies them unless it is given `--no-notes`.
321
+
322
+ `traj scenario main retire-at-55` marks one plan as your main plan, and `scenario list` and
323
+ `scenario show` print `main`. It is a label and not a default: `projection run` and every other read
324
+ still need `--scenario`. `scenario rm` of the main plan is refused until another is chosen
325
+ (`scenario main --clear` takes the mark off), or removed anyway with `--force`.
326
+
311
327
  ## Milestones: points in the plan that a Flow waits for
312
328
 
313
329
  > **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.90",
3
+ "version": "0.8.0-alpha.92",
4
4
  "description": "trajectonomics command line",
5
5
  "license": "MIT",
6
6
  "type": "module",