@jacebenson/jsn 4.3.13-dev.108.1 → 4.3.13-dev.109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/records.js +3 -0
package/package.json
CHANGED
package/src/commands/records.js
CHANGED
|
@@ -101,6 +101,9 @@ export function recordsCmd(wrap) {
|
|
|
101
101
|
'and press Enter to select or Esc to cancel. --sys-id skips the picker.',
|
|
102
102
|
'Use --json for noninteractive structured output; pipes and explicit formats also skip the picker.',
|
|
103
103
|
'Example: jsn records list --table incident --query "active=true" --limit 5 --json',
|
|
104
|
+
'JSON shape (abbreviated): {"ok":true,"data":{"records":[{"sys_id":"...","number":"INC0010001"}]},...}',
|
|
105
|
+
'Records are at data.records; fields are directly on each record (e.g. record.number).',
|
|
106
|
+
'Array only: jsn records list --table incident --get data.records',
|
|
104
107
|
'Discover fields with: jsn columns --table incident',
|
|
105
108
|
].join('\n')),
|
|
106
109
|
handler: wrap(async (argv, app) => {
|