nighthawk 0.2.0

AI terminal autocomplete — zero config, zero login, zero telemetry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
{
  "name": "rubocop",
  "description": "A Ruby static code analyzer and formatter, based on the community Ruby style guide",
  "options": [
    {
      "names": [
        "-l",
        "--lint"
      ],
      "description": "Run only lint cops"
    },
    {
      "names": [
        "-x",
        "--fix-layout"
      ],
      "description": "Run only layout cops, with autocorrect on"
    },
    {
      "names": [
        "--safe"
      ],
      "description": "Run only safe cops"
    },
    {
      "names": [
        "--except"
      ],
      "description": "Exclude the given cop(s)",
      "takes_arg": true,
      "arg": {
        "name": "COP",
        "is_variadic": true
      }
    },
    {
      "names": [
        "--only"
      ],
      "description": "Run only the given cop(s)",
      "takes_arg": true,
      "arg": {
        "name": "COP",
        "is_variadic": true
      }
    },
    {
      "names": [
        "--only-guide-cops"
      ],
      "description": "Run only cops for rules that link to a style guide"
    },
    {
      "names": [
        "-F",
        "--fail-fast"
      ],
      "description": "Inspect files in order of modification time and stop after the first file containing offenses"
    },
    {
      "names": [
        "--disable-pending-cops"
      ],
      "description": "Run without pending cops"
    },
    {
      "names": [
        "--enable-pending-cops"
      ],
      "description": "Run with pending cops"
    },
    {
      "names": [
        "--ignore-disable-comments"
      ],
      "description": "Run cops even when they are disabled locally by a `rubocop:disable` directive"
    },
    {
      "names": [
        "--force-exclusion"
      ],
      "description": "Any files excluded by `Exclude` in configuration files will be excluded, even if given explicitly as arguments"
    },
    {
      "names": [
        "--only-recognized-file-types"
      ],
      "description": "Inspect files given on the command line only if they are listed in `AllCops/Include` parameters of user configuration or default configuration"
    },
    {
      "names": [
        "--ignore-parent-exclusion"
      ],
      "description": "Prevent from inheriting `AllCops/Exclude` from parent folders"
    },
    {
      "names": [
        "--ignore-unrecognized-cops"
      ],
      "description": "Ignore unrecognized cops or departments in the config"
    },
    {
      "names": [
        "--force-default-config"
      ],
      "description": "Use default configuration even if configuration files are present in the directory tree"
    },
    {
      "names": [
        "--stdin",
        "-s"
      ],
      "description": "Pipe source from STDIN, using FILE in offense reports. This is useful for editor integration",
      "takes_arg": true,
      "arg": {
        "name": "FILE",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-P",
        "--parallel"
      ],
      "description": "Use available CPUs to execute inspection in parallel default true"
    },
    {
      "names": [
        "--no-parallel"
      ],
      "description": "Disable parallel inspection (default: false)"
    },
    {
      "names": [
        "--fail-level"
      ],
      "description": "Minimum severity for exit with error code",
      "takes_arg": true,
      "arg": {
        "name": "SEVERITY",
        "suggestions": [
          "A",
          "I",
          "R",
          "C",
          "W",
          "E",
          "F"
        ]
      }
    },
    {
      "names": [
        "-C",
        "--cache"
      ],
      "description": "Use result caching (FLAG=true) or don't (FLAG=false), default determined by configuration parameter AllCops: UseCache",
      "takes_arg": true,
      "arg": {
        "name": "FLAG"
      }
    },
    {
      "names": [
        "--cache-root"
      ],
      "description": "Set the cache root directory. Takes precedence over the configuration parameter AllCops: CacheRootDirectory and the $RUBOCOP_CACHE_ROOT environment variable",
      "takes_arg": true,
      "arg": {
        "name": "DIR",
        "template": "folders"
      }
    },
    {
      "names": [
        "--no-server"
      ],
      "description": "Do not use server even if it's available"
    },
    {
      "names": [
        "--server"
      ],
      "description": "If a server process has not been started yet, start the server process and execute inspection with server.  Default is true.  You can specify the server host and port with the $RUBOCOP_SERVER_HOST and"
    },
    {
      "names": [
        "--restart-server"
      ],
      "description": "Restart server process"
    },
    {
      "names": [
        "--start-server"
      ],
      "description": "Start server process"
    },
    {
      "names": [
        "--stop-server"
      ],
      "description": "Stop server process"
    },
    {
      "names": [
        "--server-status"
      ],
      "description": "Show server status"
    },
    {
      "names": [
        "-f",
        "--format"
      ],
      "description": "Choose an output formatter. This option can be specified multiple times to enable multiple formatters at the same time",
      "takes_arg": true,
      "arg": {
        "name": "FORMATTER",
        "suggestions": [
          "a",
          "c",
          "e",
          "fi",
          "fu",
          "g",
          "h",
          "j",
          "ju",
          "m",
          "o",
          "pa",
          "p",
          "q",
          "s",
          "t",
          "w",
          "[custom]"
        ]
      }
    },
    {
      "names": [
        "-D",
        "--display-cop-names"
      ],
      "description": "Display cop names in offense messages.  Default is true"
    },
    {
      "names": [
        "--no-display-cop-names"
      ],
      "description": "Disable displaying cop names in offense messages. Default false"
    },
    {
      "names": [
        "-E",
        "--extra-details"
      ],
      "description": "Display extra details in offense messages"
    },
    {
      "names": [
        "-S",
        "--display-style-guide"
      ],
      "description": "Display style guide URLs in offense messages"
    },
    {
      "names": [
        "-o",
        "--out"
      ],
      "description": "Write output to a file instead of STDOUT.  This option applies to the previously specified --format, or the default format if no format is specified",
      "takes_arg": true,
      "arg": {
        "name": "FILE",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--stderr"
      ],
      "description": "Write all output to stderr except for the autocorrected source. This is especially useful when combined with --autocorrect and --stdin"
    },
    {
      "names": [
        "--display-time"
      ],
      "description": "Display elapsed time in seconds"
    },
    {
      "names": [
        "--display-only-failed"
      ],
      "description": "Only output offense messages. Omit passing cops. Only valid for --format junit"
    },
    {
      "names": [
        "--display-only-fail-level-offenses"
      ],
      "description": "Only output offense messages at the specified --fail-level or above"
    },
    {
      "names": [
        "--display-only-correctable"
      ],
      "description": "Only output correctable offense messages"
    },
    {
      "names": [
        "--display-only-safe-correctable"
      ],
      "description": "Only output safe-correctable offense messages when combined with --display-only-correctable"
    },
    {
      "names": [
        "-a",
        "--autocorrect"
      ],
      "description": "Autocorrect offenses (only when it's safe)"
    },
    {
      "names": [
        "-A",
        "--autocorrect-all"
      ],
      "description": "Autocorrect offenses (safe and unsafe)"
    },
    {
      "names": [
        "--disable-uncorrectable"
      ],
      "description": "Annotates any offenses that do not support autocorrect with `rubocop:todo` comments"
    },
    {
      "names": [
        "--auto-gen-config"
      ],
      "description": "Generate a configuration file acting as a TODO list"
    },
    {
      "names": [
        "--regenerate-todo"
      ],
      "description": "Regenerate the TODO configuration file using the last configuration. If there is no existing TODO file, acts like --auto-gen-config"
    },
    {
      "names": [
        "--exclude-limit"
      ],
      "description": "Set the limit for how many files to explicitly exclude.  If there are more files than the limit, the cop will be disabled instead. Default is 15",
      "takes_arg": true,
      "arg": {
        "name": "COUNT"
      }
    },
    {
      "names": [
        "--offense-counts"
      ],
      "description": "Include offense counts in configuration file generated by --auto-gen-config.  Default is true"
    },
    {
      "names": [
        "--auto-gen-only-exclude"
      ],
      "description": "Generate only Exclude parameters and not Max when running --auto-gen-config, except if the number of files with offenses is bigger than exclude-limit. Default is false"
    },
    {
      "names": [
        "--auto-gen-timestamp"
      ],
      "description": "Include the date and time when the --auto-gen-config was run in the file it generates. Default is true"
    },
    {
      "names": [
        "-L",
        "--list-target-files"
      ],
      "description": "List all files RuboCop will inspect"
    },
    {
      "names": [
        "--show-cops"
      ],
      "description": "Shows the given cops, or all cops by default, and their configurations for the current directory",
      "takes_arg": true,
      "arg": {
        "name": "COP",
        "is_variadic": true
      }
    },
    {
      "names": [
        "--show-docs-url"
      ],
      "description": "Display url to documentation for the given cops, or base url by default",
      "takes_arg": true,
      "arg": {
        "name": "COP",
        "is_variadic": true
      }
    },
    {
      "names": [
        "--init"
      ],
      "description": "Generate a .rubocop.yml file in the current directory"
    },
    {
      "names": [
        "-c",
        "--config"
      ],
      "description": "Specify configuration file",
      "takes_arg": true,
      "arg": {
        "name": "file",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-d",
        "--debug"
      ],
      "description": "Display debug info"
    },
    {
      "names": [
        "-r",
        "--require"
      ],
      "description": "Require Ruby file",
      "takes_arg": true,
      "arg": {
        "name": "file",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--no-color"
      ],
      "description": "Disable color output"
    },
    {
      "names": [
        "--color"
      ],
      "description": "Force color output"
    },
    {
      "names": [
        "-v",
        "--version"
      ],
      "description": "Display version"
    },
    {
      "names": [
        "-V",
        "--verbose-version"
      ],
      "description": "Display verbose version"
    }
  ],
  "args": [
    {
      "name": "file",
      "is_variadic": true,
      "template": "filepaths"
    }
  ]
}