Skip to content

Commit 4c94efa

Browse files
committed
docs(sim-cli): the workspace loop help names every deletion --allow-delete guards, and the README lists exits 14 and 15
1 parent cd81e29 commit 4c94efa

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎packages/sim-cli/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,9 @@ creates and dry runs, are resent up to 6 times first, each wait the longer of `R
325325
release both exited 1. Ctrl-C exits 130; a source apply or create already sent is finished and
326326
saved into its directory first. The `workflows source` and `workspaces source` commands also use
327327
5 (stale), 6 (a locked workflow or folder; a locked block exits 1), 7 (too large), 8 (a workspace
328-
apply stopped part-way), 10 (busy), 11 (status: local changes) and 12 (status: the server
329-
changed). Command-specific codes: [Exit codes](https://docs.sim.ai/cli/scripting#exit-codes).
328+
apply stopped part-way), 10 (busy), 11 (status: local changes), 12 (status: the server changed),
329+
14 (a write without `--yes` where no terminal can ask: it printed the plan and wrote nothing) and 15
330+
(a workspace apply wrote part of its plan and held the rest back). Command-specific codes: [Exit codes](https://docs.sim.ai/cli/scripting#exit-codes).
330331

331332
## Workflows and workspaces as code
332333

‎packages/sim-cli/src/commands/protocol/source-loop-help.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ ${loopRows([
5252
Promote dev to prod: \`sim workspaces source apply --dir ./ws --to <workspaceId> --dry-run\`, then
5353
--yes.
5454
55-
Flags the loop needs: --allow-delete (apply: a removed file, column, block or variable is refused
56-
without it), --force (get: replace edits no apply has saved). A workflow deploys on apply when
55+
Flags the loop needs: --allow-delete (apply: removing a resource, a column, rows or a document,
56+
or a workflow's block or variable, is refused without it), --force (get: replace edits no apply
57+
has saved). A workflow deploys on apply when
5758
deployments/<key>.ts declares it.
5859
${statusLine('sim workspaces source', './ws')}`

0 commit comments

Comments
 (0)