You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1097,6 +1097,7 @@ You can also define groups of tables within viewpoints.
1097
1097
1098
1098
viewpoints:
1099
1099
-
1100
+
id: comments-on-post
1100
1101
name: comments on post
1101
1102
desc: Users can comment on each post multiple times and put a star on each comment.
1102
1103
tables:
@@ -1123,6 +1124,8 @@ viewpoints:
1123
1124
1124
1125
```
1125
1126
1127
+
`id`is optional. When set, it is used as the suffix of the viewpoint output file name (e.g. `viewpoint-comments-on-post.md`) instead of the index, so the file name stays stable regardless of the viewpoint order. `id` must be unique and must not contain path separators (`/` or `\`). It is also used to specify the viewpoint in `tbls out --viewpoint`.
outCmd.Flags().StringSliceVarP(&excludes, "exclude", "", []string{}, "tables to exclude")
168
194
outCmd.Flags().StringSliceVarP(&labels, "label", "", []string{}, "table labels to be included")
169
195
outCmd.Flags().IntVarP(&distance, "distance", "", 0, "distance between related tables to be displayed")
196
+
outCmd.Flags().StringVarP(&viewpoint, "viewpoint", "", "", "output only the specified viewpoint (by id, or by index); with -t md the viewpoint document (groups + ER) is generated")
0 commit comments