Skip to content

Commit 8a06abb

Browse files
committed
Docs
1 parent ffea345 commit 8a06abb

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/src/v2cli/show.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,33 @@ $ tectonic -X show user-cache-dir
3434
$ tectonic -X show user-cache-dir
3535
C:\Users\knuth\AppData\Local\TectonicProject\Tectonic # Windows
3636
```
37+
38+
39+
## tectonic -X show metadata
40+
41+
Read metadata from the current workspace. Great for automated scripts!
42+
43+
#### Usage Synopsis
44+
45+
Given a `Tectonic.toml` that contains the following:
46+
47+
```toml
48+
[doc.metadata]
49+
title = "Title"
50+
arr = [1, 2, [6, 7]]
51+
```
52+
53+
54+
```sh
55+
$ tectonic -X show metadata title
56+
Title
57+
58+
$ tectonic -X show metadata arr.len
59+
3
60+
61+
$ tectonic -X show metadata arr.2.0
62+
6
63+
```
64+
65+
Note that `tectonic -X show metadata arr` returns an error.
66+
Lists and tables may not be accessed directly.

0 commit comments

Comments
 (0)