write_block
Replaces one block of a vzk file on a branch with new text and leaves the rest of the file as it is, as one commit checked like git commit. Typed inside bash, where help write_block prints the same.
Usage: write_block ADDRESS CONTENT [options]
Replaces one block of a vzk file on a branch with new text and leavesthe rest of the file as it is, as one commit checked like git commit.Read the block with read_block first. A block that shares a line withother markup is refused: change it with edit FILE in bash.The file is fixed and put in canonical form as it is written, and theanswer says what changed.
Options: --branch TEXT (default: the checkout's branch) The branch to write, made with git switch -c. main is never written directly. --address TEXT (required) The block's address from outline: its file, # and its id, such as pages/index.vzk#hero. --content TEXT (required) The block's whole new text, taken literally, as read_block answers it. --message TEXT What the change is, in a line. Defaults to naming the files. --base TEXT The commit you read the files at. A file changed on the branch since then is refused, so another writer's change is never overwritten. --note TEXT One sentence, in the customer's words, kept with the commit. --json OBJECT Every argument at once, as one JSON object; --json - reads it from stdin.