edit_block
Moves (within its file or to another), renames, removes or wraps one block of a vzk file on a branch by its address from outline, makes it a component or puts a component back, or adds new markup at a place, without sending the file. Typed inside bash, where help edit_block prints the same.
Usage: edit_block OPERATION [options]
Moves (within its file or to another), renames, removes or wraps oneblock of a vzk file on a branch by its address from outline, makes ita component or puts a component back, or adds new markup at a place,without sending the file. One commit, checked like git commit,that may change several files. To undo it, git revert <the answer'sparent> -- <its paths>. guide vzk/authoring shows each operation.
Options: --branch TEXT (default: the checkout's branch) The branch to write, made with git switch -c. main is never written directly. --operation delete|rename|move|extract|inline|insert|wrap (required) What to do: every operation but insert takes the block's address, move and insert a place, insert and wrap markup, rename an id, extract a name. --address TEXT The block's address from outline: its file, # and its id, such as pages/index.vzk#hero. Every operation but insert. --markup TEXT insert: the element or elements to add. wrap: one element with nothing in it, such as <div class="band"></div>, to put around the block. --id TEXT rename: the block's new id. --name TEXT extract: the component's name, a capital then letters and digits, such as Hero. It is written to components/<name>.vzk. --before TEXT move, insert: the address of the block it goes before, in this file or another. --after TEXT move, insert: the address of the block it goes after. --into TEXT move, insert: the address of the block it goes inside, at its end. --end TEXT move, insert: the path of the file whose markup it goes at the end of. --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.