OpenSite/Reference/Commands/Inspect a document: Difference between revisions
BathAfrica (talk | contribs) Publish Cursor documentation reconciled with OpenSite source 77c3fee; tests not rerun |
BathAfrica (talk | contribs) Link adjacent OpenSite reference pages in reading order |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
{{OpenSite scope}} | |||
{{BathAfrica Command | {{BathAfrica Command | ||
|id=cli.document.inspect | |id=cli.document.inspect | ||
|summary=Print the objects and properties in a saved document. | |summary=Print the objects and properties in a saved document. | ||
| Line 13: | Line 14: | ||
}} | }} | ||
== Try this workflow == | |||
[[OpenSite/Guides/First document|First document]] — a worked lesson with expected results. | |||
== Documentation basis == | == Documentation basis == | ||
| Line 24: | Line 28: | ||
[[OpenSite|OpenSite overview]] · [[OpenSite/Reference|Reference]] · [[OpenSite/Guides|Guides]] | [[OpenSite|OpenSite overview]] · [[OpenSite/Reference|Reference]] · [[OpenSite/Guides|Guides]] | ||
[[Category:OpenSite documentation]] | [[Category:OpenSite documentation]] | ||
<div class="os-page-nav">{{Docnav|OpenSite/Reference/Commands/Create an example document|OpenSite/Reference/Commands/Recompute a document|OpenSite/Guides|All guides}}</div> | |||
Latest revision as of 14:14, 29 October 2026
Print the objects and properties in a saved document.
- Stable identifier
cli.document.inspect
Implementation milestone
Roadmap phase 1 (historical Phase 1).
Units
Quantity properties print the canonical SI value and, when a unit id is stored, the value in that unit.
Terminal example
Python access
The CLI verb has no separate function. examples/python/document_edit.py reads a property with document.property(object, name) on the handle returned by document.create_section.
Output
One object line and one property line per property, on stdout. An opaque object prints opaque 1 and does not expand properties.
Errors
A missing file exits 1. The message is the load status on stderr.
Limitations
Inspect reads the saved file without recomputing or modifying it. The desktop also has an object tree and property inspector; this page describes the terminal inspection command.
Verification evidence
Repository evidence references (not rerun for this publication): CTest cli.document.
Try this workflow
First document — a worked lesson with expected results.
Documentation basis
Source-reviewed against development commit 77c3fee13944bcc4b5d487c77eb1f82fbe4c6ea7, branch feature/phase-13c-properties-python-expressions. This review inspected the implementation and repository evidence; it did not run the Windows application or repeat CTest.
src/cli/main.cppsrc/cli/document_commands.cppsrc/cli/preference_commands.cppsrc/application/builtins.cpp