@configdirector/cli 0.8.0-beta.1 → 0.10.0-beta.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@configdirector/cli",
3
- "version": "0.8.0-beta.1",
3
+ "version": "0.10.0-beta.1",
4
4
  "description": "Command line tool for ConfigDirector, the managed configuration and feature flag service.",
5
5
  "license": "MIT",
6
6
  "author": "ConfigDirector",
@@ -149,6 +149,9 @@
149
149
  },
150
150
  "test": {
151
151
  "$ref": "#/$defs/test"
152
+ },
153
+ "snippet": {
154
+ "$ref": "#/$defs/snippet"
152
155
  }
153
156
  }
154
157
  },
@@ -174,6 +177,58 @@
174
177
  "test": {
175
178
  "description": "Whether the file is in a test directory or has a test name.",
176
179
  "type": "boolean"
180
+ },
181
+ "snippet": {
182
+ "$ref": "#/$defs/snippet"
183
+ }
184
+ }
185
+ },
186
+ "snippet": {
187
+ "description": "The reference line and the lines around it, as many before and after it as --context-lines asks for and the file holds. Absent with --no-snippets, and in `configdirector validate --json` output.",
188
+ "type": "object",
189
+ "required": ["firstLine", "lines", "language", "truncatedLines"],
190
+ "additionalProperties": false,
191
+ "properties": {
192
+ "firstLine": {
193
+ "description": "The number of the snippet's first line in the file, starting at 1.",
194
+ "type": "integer",
195
+ "minimum": 1
196
+ },
197
+ "lines": {
198
+ "description": "The lines, in order, without their line endings. A line longer than 250 characters is cut to its first 250.",
199
+ "type": "array",
200
+ "minItems": 1,
201
+ "maxItems": 11,
202
+ "items": {
203
+ "type": "string",
204
+ "maxLength": 250
205
+ }
206
+ },
207
+ "language": {
208
+ "description": "The language to highlight the lines as, from the file's extension.",
209
+ "enum": [
210
+ "typescript",
211
+ "tsx",
212
+ "javascript",
213
+ "jsx",
214
+ "vue",
215
+ "svelte",
216
+ "dart",
217
+ "swift",
218
+ "kotlin",
219
+ "java",
220
+ "python",
221
+ "csharp",
222
+ "go"
223
+ ]
224
+ },
225
+ "truncatedLines": {
226
+ "description": "The numbers of the lines that were cut to 250 characters, empty when none was.",
227
+ "type": "array",
228
+ "items": {
229
+ "type": "integer",
230
+ "minimum": 1
231
+ }
177
232
  }
178
233
  }
179
234
  },