arc inspect
Print the resolved manifest.
Usage
arc inspect [selector] [options]
Positionals:
selector Property selector [string] [default: null]
Options:
-j, --json Format output as JSON [boolean] [default: false]
-q, --quiet Output only errors [boolean] [default: false]
-C, --cwd Set the working directory [string] [default: "."]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Description
Prints the resolved manifest: the result of merging the README, the .arcadible/ media, package.json if present, and arcadible.toml. This is exactly what arc validate checks and arc deploy publishes. See Sources.
Use it to confirm where a value comes from, or why a field is missing:
arc inspect # everything, as TOML
arc inspect game # one table
arc inspect game.short_title # one value, by dot path
arc inspect game.gallery --json # as JSON
A dot path selects into tables and lists alike: a number picks a list's item, counting from 0. arc validate names issues the same way, so for an issue in game.gallery.3, this shows which file it is:
$ arc inspect game.gallery.3
3 = ".arcadible/gallery/screenshot_02_phone.png"
A selector that doesn't match prints # <last key> = null, or null with --json. game.description is shown as the HTML extracted from the README, which is also what's measured against the 3,000-character limit.
Output
The manifest as TOML, or with --json, as JSON. With a selector, only its value: "1.2.0" for arc inspect game.version --json. With --quiet without --json, it prints nothing, and its exit code says whether the project's files can be read.
| Code | When |
|---|---|
0 | It printed the manifest |
1 | The project's files can't be read, such as an arcadible.toml that isn't valid TOML |