Skip to main content

WIKI_GRID

Constant WIKI_GRID 

Source
pub const WIKI_GRID: &str = "\
Show one Yandex Wiki grid: its columns, then its rows.

```
ytcli wiki grid 8f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f
ytcli wiki grid 8f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f --filter \"[owner] ~ ilubenets\" --sort \"-version\"
ytcli wiki grid 8f1e2d3c-4b5a-4c6d-8e7f-9a0b1c2d3e4f --columns version,owner --full
```

A header of ours — id, title, page, revision, and each column as `slug:type` —
then the rows, fenced as written by Wiki users: one line per row, cells
tab-separated under a line of column titles. A tab, newline or backslash inside
a cell is written `\\t`, `\\n`, `\\\\`. Users show as logins, tickets as keys,
Tracker fields as what they display; `--format json` keeps the typed values.

The Wiki returns every matching row, so narrow the question with `--filter`,
`--columns` and `--rows` rather than reading the lot. Rows are cut like a
description; `--full` shows them all. The tally counts the rows shown.";