mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-29 13:16:50 -06:00
Docs: a failed macro run rolls back workbook changes; a file it already wrote stays
The intro said a macro run rolls everything back on an error, but a step that exports or prints to a path writes the file before a later step can fail, and the Running section says that file stays. The intro now limits the guarantee to workbook changes.
This commit is contained in:
+3
-2
@@ -4,8 +4,9 @@
|
||||
|
||||
GridCraft macros are typed, declarative lists of commands, not VBA. Every step runs a GridCraft
|
||||
command (the same ids the ribbon, CLI and MCP use) or one of three bounded control steps. A macro
|
||||
declares the inputs it works on, runs as one undo step, rolls everything back on an error, checks
|
||||
where its results will land before it writes them, and does not touch files without permission.
|
||||
declares the inputs it works on, runs as one undo step, rolls all workbook changes back on an
|
||||
error (a file it already wrote stays), checks where its results will land before it writes them,
|
||||
and does not touch files without permission.
|
||||
Agents run macros with `macro.run` like any other command.
|
||||
|
||||
This page describes the macro format, its tokens, and running and checking macros. The engine has
|
||||
|
||||
Reference in New Issue
Block a user