Skip to content

Commit

Permalink
Document cardinality checking from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy authored Aug 21, 2023
1 parent 5589946 commit ad136dc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,33 @@ default `http://rack001/data`. Multiple data graphs can be specified.
(venv) $ rack data clear --data-graph http://rack001/ex1 --data-graph http://rack001/ex2
```

### Check data cardinality constraints

The RACK CLI can invoke the cardinality report generator. The output behavior is similar
to a data export. The format and headers are configurable.

```
usage: rack data cardinality [-h] [--model-graph MODEL_GRAPH] [--data-graph DATA_GRAPH] [--format {text,csv}] [--no-headers]
[--max-rows MAX_ROWS] [--concise]

options:
-h, --help show this help message and exit
--model-graph MODEL_GRAPH
Model graph URL
--data-graph DATA_GRAPH
Data graph URL
--format {text,csv} Export format
--no-headers Omit header row
--max-rows MAX_ROWS Maximum output rows
--concise Use concise output
```
With the default arguments, RACK will check the default graph and generate a human-readable table.
```shell
(venv) $ rack data cardinality
```

### Nodegroups

The script can automate loading a directory full of nodegroups
Expand Down

0 comments on commit ad136dc

Please sign in to comment.