OpenSite/Reference/Commands/Inspect a document

From BathAfrica Documentation
Revision as of 13:05, 29 October 2026 by BathAfrica (talk | contribs) (Publish Cursor documentation reconciled with OpenSite source 77c3fee; tests not rerun)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Review notice: Development documentation for OpenSite 0.0.1, source snapshot 77c3fee (Phase 13C). Reviewed against implementation on 29 October 2026. Tests and the Windows desktop were not rerun for this publication; this is not a released-product support claim.

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

opensite-cli document inspect section.osdoc

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.


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.cpp
  • src/cli/document_commands.cpp
  • src/cli/preference_commands.cpp
  • src/application/builtins.cpp

OpenSite overview · Reference · Guides