@loopress/cli 0.18.0 → 0.19.0
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/README.md +138 -74
- package/dist/commands/acf/pull.d.ts +1 -1
- package/dist/commands/acf/pull.js +12 -25
- package/dist/commands/acf/push.d.ts +1 -1
- package/dist/commands/acf/push.js +18 -47
- package/dist/commands/api/pull.d.ts +1 -1
- package/dist/commands/api/pull.js +11 -26
- package/dist/commands/api/push.d.ts +1 -1
- package/dist/commands/api/push.js +21 -27
- package/dist/commands/composer/init.js +11 -1
- package/dist/commands/composer/push.d.ts +1 -0
- package/dist/commands/composer/push.js +17 -4
- package/dist/commands/doctor.d.ts +8 -0
- package/dist/commands/doctor.js +79 -0
- package/dist/commands/form/pull.d.ts +1 -2
- package/dist/commands/form/pull.js +13 -32
- package/dist/commands/form/push.d.ts +1 -1
- package/dist/commands/form/push.js +6 -14
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.js +64 -33
- package/dist/commands/plugin/push.d.ts +1 -1
- package/dist/commands/plugin/push.js +2 -14
- package/dist/commands/project/config.js +4 -0
- package/dist/commands/project/push.d.ts +5 -0
- package/dist/commands/project/push.js +21 -11
- package/dist/commands/seo/pull.d.ts +1 -3
- package/dist/commands/seo/pull.js +15 -43
- package/dist/commands/seo/push.d.ts +1 -1
- package/dist/commands/seo/push.js +4 -17
- package/dist/commands/snippet/publish.js +2 -2
- package/dist/commands/snippet/pull.d.ts +1 -4
- package/dist/commands/snippet/pull.js +12 -60
- package/dist/commands/snippet/push.d.ts +1 -1
- package/dist/commands/snippet/push.js +4 -13
- package/dist/commands/status.d.ts +4 -0
- package/dist/commands/status.js +25 -4
- package/dist/config/project-config.manager.js +2 -2
- package/dist/lib/api-client.d.ts +2 -1
- package/dist/lib/api-client.js +10 -3
- package/dist/lib/base.d.ts +9 -0
- package/dist/lib/base.js +61 -2
- package/dist/lib/find-orphaned-files.d.ts +7 -0
- package/dist/lib/find-orphaned-files.js +29 -0
- package/dist/lib/interactive.d.ts +1 -0
- package/dist/lib/interactive.js +7 -0
- package/dist/lib/load-files.d.ts +5 -0
- package/dist/lib/load-files.js +31 -0
- package/dist/lib/push-command.d.ts +7 -0
- package/dist/lib/push-command.js +40 -2
- package/dist/lib/wp-client.d.ts +9 -4
- package/dist/lib/wp-client.js +26 -12
- package/dist/utils/composer.d.ts +3 -0
- package/dist/utils/seo-format.d.ts +1 -0
- package/dist/utils/seo-format.js +5 -0
- package/dist/utils/snippet-format.d.ts +2 -0
- package/dist/utils/snippet-format.js +27 -1
- package/dist/utils/to-slug.d.ts +1 -0
- package/dist/utils/to-slug.js +7 -0
- package/oclif.manifest.json +469 -61
- package/package.json +10 -4
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"doctor": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Diagnose connectivity, plugin and credential problems for the targeted environment",
|
|
7
|
+
"examples": [
|
|
8
|
+
"$ lps doctor",
|
|
9
|
+
"$ lps doctor --env production"
|
|
10
|
+
],
|
|
11
|
+
"flags": {
|
|
12
|
+
"env": {
|
|
13
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
14
|
+
"name": "env",
|
|
15
|
+
"hasDynamicHelp": false,
|
|
16
|
+
"multiple": false,
|
|
17
|
+
"type": "option"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"hasDynamicHelp": false,
|
|
21
|
+
"hiddenAliases": [],
|
|
22
|
+
"id": "doctor",
|
|
23
|
+
"pluginAlias": "@loopress/cli",
|
|
24
|
+
"pluginName": "@loopress/cli",
|
|
25
|
+
"pluginType": "core",
|
|
26
|
+
"strict": true,
|
|
27
|
+
"enableJsonFlag": false,
|
|
28
|
+
"dryRunFlag": {
|
|
29
|
+
"dry-run": {
|
|
30
|
+
"char": "d",
|
|
31
|
+
"description": "Show what would change without making changes",
|
|
32
|
+
"allowNo": false,
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"yesFlag": {
|
|
37
|
+
"yes": {
|
|
38
|
+
"char": "y",
|
|
39
|
+
"description": "Answer yes to confirmation prompts",
|
|
40
|
+
"allowNo": false,
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"isESM": true,
|
|
45
|
+
"relativePath": [
|
|
46
|
+
"dist",
|
|
47
|
+
"commands",
|
|
48
|
+
"doctor.js"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
3
51
|
"init": {
|
|
4
52
|
"aliases": [],
|
|
5
53
|
"args": {},
|
|
@@ -95,9 +143,18 @@
|
|
|
95
143
|
"args": {},
|
|
96
144
|
"description": "Show which WordPress project and environment commands will target",
|
|
97
145
|
"examples": [
|
|
98
|
-
"$ lps status"
|
|
146
|
+
"$ lps status",
|
|
147
|
+
"$ lps status --env staging"
|
|
99
148
|
],
|
|
100
|
-
"flags": {
|
|
149
|
+
"flags": {
|
|
150
|
+
"env": {
|
|
151
|
+
"description": "Show what would be targeted with this environment, as other commands do with --env",
|
|
152
|
+
"name": "env",
|
|
153
|
+
"hasDynamicHelp": false,
|
|
154
|
+
"multiple": false,
|
|
155
|
+
"type": "option"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
101
158
|
"hasDynamicHelp": false,
|
|
102
159
|
"hiddenAliases": [],
|
|
103
160
|
"id": "status",
|
|
@@ -122,6 +179,13 @@
|
|
|
122
179
|
"$ lps acf list --type field-groups"
|
|
123
180
|
],
|
|
124
181
|
"flags": {
|
|
182
|
+
"env": {
|
|
183
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
184
|
+
"name": "env",
|
|
185
|
+
"hasDynamicHelp": false,
|
|
186
|
+
"multiple": false,
|
|
187
|
+
"type": "option"
|
|
188
|
+
},
|
|
125
189
|
"json": {
|
|
126
190
|
"char": "j",
|
|
127
191
|
"description": "Output in JSON format",
|
|
@@ -159,6 +223,14 @@
|
|
|
159
223
|
"type": "boolean"
|
|
160
224
|
}
|
|
161
225
|
},
|
|
226
|
+
"yesFlag": {
|
|
227
|
+
"yes": {
|
|
228
|
+
"char": "y",
|
|
229
|
+
"description": "Answer yes to confirmation prompts",
|
|
230
|
+
"allowNo": false,
|
|
231
|
+
"type": "boolean"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
162
234
|
"isESM": true,
|
|
163
235
|
"relativePath": [
|
|
164
236
|
"dist",
|
|
@@ -181,6 +253,13 @@
|
|
|
181
253
|
"$ lps acf pull --type field-groups"
|
|
182
254
|
],
|
|
183
255
|
"flags": {
|
|
256
|
+
"env": {
|
|
257
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
258
|
+
"name": "env",
|
|
259
|
+
"hasDynamicHelp": false,
|
|
260
|
+
"multiple": false,
|
|
261
|
+
"type": "option"
|
|
262
|
+
},
|
|
184
263
|
"dry-run": {
|
|
185
264
|
"char": "d",
|
|
186
265
|
"description": "Show what would change without making changes",
|
|
@@ -188,6 +267,13 @@
|
|
|
188
267
|
"allowNo": false,
|
|
189
268
|
"type": "boolean"
|
|
190
269
|
},
|
|
270
|
+
"yes": {
|
|
271
|
+
"char": "y",
|
|
272
|
+
"description": "Answer yes to confirmation prompts",
|
|
273
|
+
"name": "yes",
|
|
274
|
+
"allowNo": false,
|
|
275
|
+
"type": "boolean"
|
|
276
|
+
},
|
|
191
277
|
"type": {
|
|
192
278
|
"description": "Limit to specific ACF object types",
|
|
193
279
|
"name": "type",
|
|
@@ -218,6 +304,14 @@
|
|
|
218
304
|
"type": "boolean"
|
|
219
305
|
}
|
|
220
306
|
},
|
|
307
|
+
"yesFlag": {
|
|
308
|
+
"yes": {
|
|
309
|
+
"char": "y",
|
|
310
|
+
"description": "Answer yes to confirmation prompts",
|
|
311
|
+
"allowNo": false,
|
|
312
|
+
"type": "boolean"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
221
315
|
"isESM": true,
|
|
222
316
|
"relativePath": [
|
|
223
317
|
"dist",
|
|
@@ -240,6 +334,13 @@
|
|
|
240
334
|
"$ lps acf push --type field-groups"
|
|
241
335
|
],
|
|
242
336
|
"flags": {
|
|
337
|
+
"env": {
|
|
338
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
339
|
+
"name": "env",
|
|
340
|
+
"hasDynamicHelp": false,
|
|
341
|
+
"multiple": false,
|
|
342
|
+
"type": "option"
|
|
343
|
+
},
|
|
243
344
|
"dry-run": {
|
|
244
345
|
"char": "d",
|
|
245
346
|
"description": "Show what would change without making changes",
|
|
@@ -247,6 +348,13 @@
|
|
|
247
348
|
"allowNo": false,
|
|
248
349
|
"type": "boolean"
|
|
249
350
|
},
|
|
351
|
+
"yes": {
|
|
352
|
+
"char": "y",
|
|
353
|
+
"description": "Answer yes to confirmation prompts",
|
|
354
|
+
"name": "yes",
|
|
355
|
+
"allowNo": false,
|
|
356
|
+
"type": "boolean"
|
|
357
|
+
},
|
|
250
358
|
"type": {
|
|
251
359
|
"description": "Limit to specific ACF object types",
|
|
252
360
|
"name": "type",
|
|
@@ -284,6 +392,13 @@
|
|
|
284
392
|
"$ lps api list"
|
|
285
393
|
],
|
|
286
394
|
"flags": {
|
|
395
|
+
"env": {
|
|
396
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
397
|
+
"name": "env",
|
|
398
|
+
"hasDynamicHelp": false,
|
|
399
|
+
"multiple": false,
|
|
400
|
+
"type": "option"
|
|
401
|
+
},
|
|
287
402
|
"json": {
|
|
288
403
|
"char": "j",
|
|
289
404
|
"description": "Output in JSON format",
|
|
@@ -308,6 +423,14 @@
|
|
|
308
423
|
"type": "boolean"
|
|
309
424
|
}
|
|
310
425
|
},
|
|
426
|
+
"yesFlag": {
|
|
427
|
+
"yes": {
|
|
428
|
+
"char": "y",
|
|
429
|
+
"description": "Answer yes to confirmation prompts",
|
|
430
|
+
"allowNo": false,
|
|
431
|
+
"type": "boolean"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
311
434
|
"isESM": true,
|
|
312
435
|
"relativePath": [
|
|
313
436
|
"dist",
|
|
@@ -330,12 +453,26 @@
|
|
|
330
453
|
"$ lps api pull --path ./api"
|
|
331
454
|
],
|
|
332
455
|
"flags": {
|
|
456
|
+
"env": {
|
|
457
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
458
|
+
"name": "env",
|
|
459
|
+
"hasDynamicHelp": false,
|
|
460
|
+
"multiple": false,
|
|
461
|
+
"type": "option"
|
|
462
|
+
},
|
|
333
463
|
"dry-run": {
|
|
334
464
|
"char": "d",
|
|
335
465
|
"description": "Show what would change without making changes",
|
|
336
466
|
"name": "dry-run",
|
|
337
467
|
"allowNo": false,
|
|
338
468
|
"type": "boolean"
|
|
469
|
+
},
|
|
470
|
+
"yes": {
|
|
471
|
+
"char": "y",
|
|
472
|
+
"description": "Answer yes to confirmation prompts",
|
|
473
|
+
"name": "yes",
|
|
474
|
+
"allowNo": false,
|
|
475
|
+
"type": "boolean"
|
|
339
476
|
}
|
|
340
477
|
},
|
|
341
478
|
"hasDynamicHelp": false,
|
|
@@ -354,6 +491,14 @@
|
|
|
354
491
|
"type": "boolean"
|
|
355
492
|
}
|
|
356
493
|
},
|
|
494
|
+
"yesFlag": {
|
|
495
|
+
"yes": {
|
|
496
|
+
"char": "y",
|
|
497
|
+
"description": "Answer yes to confirmation prompts",
|
|
498
|
+
"allowNo": false,
|
|
499
|
+
"type": "boolean"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
357
502
|
"isESM": true,
|
|
358
503
|
"relativePath": [
|
|
359
504
|
"dist",
|
|
@@ -376,12 +521,26 @@
|
|
|
376
521
|
"$ lps api push --path ./api"
|
|
377
522
|
],
|
|
378
523
|
"flags": {
|
|
524
|
+
"env": {
|
|
525
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
526
|
+
"name": "env",
|
|
527
|
+
"hasDynamicHelp": false,
|
|
528
|
+
"multiple": false,
|
|
529
|
+
"type": "option"
|
|
530
|
+
},
|
|
379
531
|
"dry-run": {
|
|
380
532
|
"char": "d",
|
|
381
533
|
"description": "Show what would change without making changes",
|
|
382
534
|
"name": "dry-run",
|
|
383
535
|
"allowNo": false,
|
|
384
536
|
"type": "boolean"
|
|
537
|
+
},
|
|
538
|
+
"yes": {
|
|
539
|
+
"char": "y",
|
|
540
|
+
"description": "Answer yes to confirmation prompts",
|
|
541
|
+
"name": "yes",
|
|
542
|
+
"allowNo": false,
|
|
543
|
+
"type": "boolean"
|
|
385
544
|
}
|
|
386
545
|
},
|
|
387
546
|
"hasDynamicHelp": false,
|
|
@@ -399,25 +558,33 @@
|
|
|
399
558
|
"push.js"
|
|
400
559
|
]
|
|
401
560
|
},
|
|
402
|
-
"
|
|
561
|
+
"composer:init": {
|
|
403
562
|
"aliases": [],
|
|
404
563
|
"args": {},
|
|
405
|
-
"description": "
|
|
564
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
406
565
|
"examples": [
|
|
407
|
-
"$ lps
|
|
566
|
+
"$ lps composer init",
|
|
567
|
+
"$ lps composer init --dry-run"
|
|
408
568
|
],
|
|
409
569
|
"flags": {
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
570
|
+
"env": {
|
|
571
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
572
|
+
"name": "env",
|
|
573
|
+
"hasDynamicHelp": false,
|
|
574
|
+
"multiple": false,
|
|
575
|
+
"type": "option"
|
|
576
|
+
},
|
|
577
|
+
"dry-run": {
|
|
578
|
+
"char": "d",
|
|
579
|
+
"description": "Show what would change without making changes",
|
|
580
|
+
"name": "dry-run",
|
|
414
581
|
"allowNo": false,
|
|
415
582
|
"type": "boolean"
|
|
416
583
|
}
|
|
417
584
|
},
|
|
418
585
|
"hasDynamicHelp": false,
|
|
419
586
|
"hiddenAliases": [],
|
|
420
|
-
"id": "
|
|
587
|
+
"id": "composer:init",
|
|
421
588
|
"pluginAlias": "@loopress/cli",
|
|
422
589
|
"pluginName": "@loopress/cli",
|
|
423
590
|
"pluginType": "core",
|
|
@@ -431,27 +598,38 @@
|
|
|
431
598
|
"type": "boolean"
|
|
432
599
|
}
|
|
433
600
|
},
|
|
601
|
+
"yesFlag": {
|
|
602
|
+
"yes": {
|
|
603
|
+
"char": "y",
|
|
604
|
+
"description": "Answer yes to confirmation prompts",
|
|
605
|
+
"allowNo": false,
|
|
606
|
+
"type": "boolean"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
434
609
|
"isESM": true,
|
|
435
610
|
"relativePath": [
|
|
436
611
|
"dist",
|
|
437
612
|
"commands",
|
|
438
|
-
"
|
|
439
|
-
"
|
|
613
|
+
"composer",
|
|
614
|
+
"init.js"
|
|
440
615
|
]
|
|
441
616
|
},
|
|
442
|
-
"
|
|
617
|
+
"composer:pull": {
|
|
443
618
|
"aliases": [],
|
|
444
|
-
"args": {
|
|
445
|
-
|
|
446
|
-
"description": "Path to forms directory (overrides project config)",
|
|
447
|
-
"name": "path"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"description": "Pull forms from WordPress",
|
|
619
|
+
"args": {},
|
|
620
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
451
621
|
"examples": [
|
|
452
|
-
"$ lps
|
|
622
|
+
"$ lps composer pull",
|
|
623
|
+
"$ lps composer pull --dry-run"
|
|
453
624
|
],
|
|
454
625
|
"flags": {
|
|
626
|
+
"env": {
|
|
627
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
628
|
+
"name": "env",
|
|
629
|
+
"hasDynamicHelp": false,
|
|
630
|
+
"multiple": false,
|
|
631
|
+
"type": "option"
|
|
632
|
+
},
|
|
455
633
|
"dry-run": {
|
|
456
634
|
"char": "d",
|
|
457
635
|
"description": "Show what would change without making changes",
|
|
@@ -462,7 +640,7 @@
|
|
|
462
640
|
},
|
|
463
641
|
"hasDynamicHelp": false,
|
|
464
642
|
"hiddenAliases": [],
|
|
465
|
-
"id": "
|
|
643
|
+
"id": "composer:pull",
|
|
466
644
|
"pluginAlias": "@loopress/cli",
|
|
467
645
|
"pluginName": "@loopress/cli",
|
|
468
646
|
"pluginType": "core",
|
|
@@ -476,38 +654,56 @@
|
|
|
476
654
|
"type": "boolean"
|
|
477
655
|
}
|
|
478
656
|
},
|
|
657
|
+
"yesFlag": {
|
|
658
|
+
"yes": {
|
|
659
|
+
"char": "y",
|
|
660
|
+
"description": "Answer yes to confirmation prompts",
|
|
661
|
+
"allowNo": false,
|
|
662
|
+
"type": "boolean"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
479
665
|
"isESM": true,
|
|
480
666
|
"relativePath": [
|
|
481
667
|
"dist",
|
|
482
668
|
"commands",
|
|
483
|
-
"
|
|
669
|
+
"composer",
|
|
484
670
|
"pull.js"
|
|
485
671
|
]
|
|
486
672
|
},
|
|
487
|
-
"
|
|
673
|
+
"composer:push": {
|
|
488
674
|
"aliases": [],
|
|
489
|
-
"args": {
|
|
490
|
-
|
|
491
|
-
"description": "Path to forms directory (overrides project config)",
|
|
492
|
-
"name": "path"
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
675
|
+
"args": {},
|
|
676
|
+
"description": "Push composer.json and composer.lock to WordPress and run composer install",
|
|
496
677
|
"examples": [
|
|
497
|
-
"$ lps
|
|
678
|
+
"$ lps composer push",
|
|
679
|
+
"$ lps composer push --dry-run"
|
|
498
680
|
],
|
|
499
681
|
"flags": {
|
|
682
|
+
"env": {
|
|
683
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
684
|
+
"name": "env",
|
|
685
|
+
"hasDynamicHelp": false,
|
|
686
|
+
"multiple": false,
|
|
687
|
+
"type": "option"
|
|
688
|
+
},
|
|
500
689
|
"dry-run": {
|
|
501
690
|
"char": "d",
|
|
502
691
|
"description": "Show what would change without making changes",
|
|
503
692
|
"name": "dry-run",
|
|
504
693
|
"allowNo": false,
|
|
505
694
|
"type": "boolean"
|
|
695
|
+
},
|
|
696
|
+
"yes": {
|
|
697
|
+
"char": "y",
|
|
698
|
+
"description": "Answer yes to confirmation prompts",
|
|
699
|
+
"name": "yes",
|
|
700
|
+
"allowNo": false,
|
|
701
|
+
"type": "boolean"
|
|
506
702
|
}
|
|
507
703
|
},
|
|
508
704
|
"hasDynamicHelp": false,
|
|
509
705
|
"hiddenAliases": [],
|
|
510
|
-
"id": "
|
|
706
|
+
"id": "composer:push",
|
|
511
707
|
"pluginAlias": "@loopress/cli",
|
|
512
708
|
"pluginName": "@loopress/cli",
|
|
513
709
|
"pluginType": "core",
|
|
@@ -516,30 +712,36 @@
|
|
|
516
712
|
"relativePath": [
|
|
517
713
|
"dist",
|
|
518
714
|
"commands",
|
|
519
|
-
"
|
|
715
|
+
"composer",
|
|
520
716
|
"push.js"
|
|
521
717
|
]
|
|
522
718
|
},
|
|
523
|
-
"
|
|
719
|
+
"form:list": {
|
|
524
720
|
"aliases": [],
|
|
525
721
|
"args": {},
|
|
526
|
-
"description": "
|
|
722
|
+
"description": "List forms from WordPress",
|
|
527
723
|
"examples": [
|
|
528
|
-
"$ lps
|
|
529
|
-
"$ lps composer init --dry-run"
|
|
724
|
+
"$ lps form list"
|
|
530
725
|
],
|
|
531
726
|
"flags": {
|
|
532
|
-
"
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
"
|
|
727
|
+
"env": {
|
|
728
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
729
|
+
"name": "env",
|
|
730
|
+
"hasDynamicHelp": false,
|
|
731
|
+
"multiple": false,
|
|
732
|
+
"type": "option"
|
|
733
|
+
},
|
|
734
|
+
"json": {
|
|
735
|
+
"char": "j",
|
|
736
|
+
"description": "Output in JSON format",
|
|
737
|
+
"name": "json",
|
|
536
738
|
"allowNo": false,
|
|
537
739
|
"type": "boolean"
|
|
538
740
|
}
|
|
539
741
|
},
|
|
540
742
|
"hasDynamicHelp": false,
|
|
541
743
|
"hiddenAliases": [],
|
|
542
|
-
"id": "
|
|
744
|
+
"id": "form:list",
|
|
543
745
|
"pluginAlias": "@loopress/cli",
|
|
544
746
|
"pluginName": "@loopress/cli",
|
|
545
747
|
"pluginType": "core",
|
|
@@ -553,34 +755,60 @@
|
|
|
553
755
|
"type": "boolean"
|
|
554
756
|
}
|
|
555
757
|
},
|
|
758
|
+
"yesFlag": {
|
|
759
|
+
"yes": {
|
|
760
|
+
"char": "y",
|
|
761
|
+
"description": "Answer yes to confirmation prompts",
|
|
762
|
+
"allowNo": false,
|
|
763
|
+
"type": "boolean"
|
|
764
|
+
}
|
|
765
|
+
},
|
|
556
766
|
"isESM": true,
|
|
557
767
|
"relativePath": [
|
|
558
768
|
"dist",
|
|
559
769
|
"commands",
|
|
560
|
-
"
|
|
561
|
-
"
|
|
770
|
+
"form",
|
|
771
|
+
"list.js"
|
|
562
772
|
]
|
|
563
773
|
},
|
|
564
|
-
"
|
|
774
|
+
"form:pull": {
|
|
565
775
|
"aliases": [],
|
|
566
|
-
"args": {
|
|
567
|
-
|
|
776
|
+
"args": {
|
|
777
|
+
"path": {
|
|
778
|
+
"description": "Path to forms directory (overrides project config)",
|
|
779
|
+
"name": "path"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"description": "Pull forms from WordPress",
|
|
568
783
|
"examples": [
|
|
569
|
-
"$ lps
|
|
570
|
-
"$ lps composer pull --dry-run"
|
|
784
|
+
"$ lps form pull"
|
|
571
785
|
],
|
|
572
786
|
"flags": {
|
|
787
|
+
"env": {
|
|
788
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
789
|
+
"name": "env",
|
|
790
|
+
"hasDynamicHelp": false,
|
|
791
|
+
"multiple": false,
|
|
792
|
+
"type": "option"
|
|
793
|
+
},
|
|
573
794
|
"dry-run": {
|
|
574
795
|
"char": "d",
|
|
575
796
|
"description": "Show what would change without making changes",
|
|
576
797
|
"name": "dry-run",
|
|
577
798
|
"allowNo": false,
|
|
578
799
|
"type": "boolean"
|
|
800
|
+
},
|
|
801
|
+
"yes": {
|
|
802
|
+
"char": "y",
|
|
803
|
+
"description": "Answer yes to confirmation prompts",
|
|
804
|
+
"name": "yes",
|
|
805
|
+
"allowNo": false,
|
|
806
|
+
"type": "boolean"
|
|
579
807
|
}
|
|
580
808
|
},
|
|
581
809
|
"hasDynamicHelp": false,
|
|
582
810
|
"hiddenAliases": [],
|
|
583
|
-
"id": "
|
|
811
|
+
"id": "form:pull",
|
|
584
812
|
"pluginAlias": "@loopress/cli",
|
|
585
813
|
"pluginName": "@loopress/cli",
|
|
586
814
|
"pluginType": "core",
|
|
@@ -594,34 +822,60 @@
|
|
|
594
822
|
"type": "boolean"
|
|
595
823
|
}
|
|
596
824
|
},
|
|
825
|
+
"yesFlag": {
|
|
826
|
+
"yes": {
|
|
827
|
+
"char": "y",
|
|
828
|
+
"description": "Answer yes to confirmation prompts",
|
|
829
|
+
"allowNo": false,
|
|
830
|
+
"type": "boolean"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
597
833
|
"isESM": true,
|
|
598
834
|
"relativePath": [
|
|
599
835
|
"dist",
|
|
600
836
|
"commands",
|
|
601
|
-
"
|
|
837
|
+
"form",
|
|
602
838
|
"pull.js"
|
|
603
839
|
]
|
|
604
840
|
},
|
|
605
|
-
"
|
|
841
|
+
"form:push": {
|
|
606
842
|
"aliases": [],
|
|
607
|
-
"args": {
|
|
608
|
-
|
|
843
|
+
"args": {
|
|
844
|
+
"path": {
|
|
845
|
+
"description": "Path to forms directory (overrides project config)",
|
|
846
|
+
"name": "path"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
609
850
|
"examples": [
|
|
610
|
-
"$ lps
|
|
611
|
-
"$ lps composer push --dry-run"
|
|
851
|
+
"$ lps form push"
|
|
612
852
|
],
|
|
613
853
|
"flags": {
|
|
854
|
+
"env": {
|
|
855
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
856
|
+
"name": "env",
|
|
857
|
+
"hasDynamicHelp": false,
|
|
858
|
+
"multiple": false,
|
|
859
|
+
"type": "option"
|
|
860
|
+
},
|
|
614
861
|
"dry-run": {
|
|
615
862
|
"char": "d",
|
|
616
863
|
"description": "Show what would change without making changes",
|
|
617
864
|
"name": "dry-run",
|
|
618
865
|
"allowNo": false,
|
|
619
866
|
"type": "boolean"
|
|
867
|
+
},
|
|
868
|
+
"yes": {
|
|
869
|
+
"char": "y",
|
|
870
|
+
"description": "Answer yes to confirmation prompts",
|
|
871
|
+
"name": "yes",
|
|
872
|
+
"allowNo": false,
|
|
873
|
+
"type": "boolean"
|
|
620
874
|
}
|
|
621
875
|
},
|
|
622
876
|
"hasDynamicHelp": false,
|
|
623
877
|
"hiddenAliases": [],
|
|
624
|
-
"id": "
|
|
878
|
+
"id": "form:push",
|
|
625
879
|
"pluginAlias": "@loopress/cli",
|
|
626
880
|
"pluginName": "@loopress/cli",
|
|
627
881
|
"pluginType": "core",
|
|
@@ -630,7 +884,7 @@
|
|
|
630
884
|
"relativePath": [
|
|
631
885
|
"dist",
|
|
632
886
|
"commands",
|
|
633
|
-
"
|
|
887
|
+
"form",
|
|
634
888
|
"push.js"
|
|
635
889
|
]
|
|
636
890
|
},
|
|
@@ -649,6 +903,13 @@
|
|
|
649
903
|
"$ lps plugin add contact-form-7 --dry-run"
|
|
650
904
|
],
|
|
651
905
|
"flags": {
|
|
906
|
+
"env": {
|
|
907
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
908
|
+
"name": "env",
|
|
909
|
+
"hasDynamicHelp": false,
|
|
910
|
+
"multiple": false,
|
|
911
|
+
"type": "option"
|
|
912
|
+
},
|
|
652
913
|
"dry-run": {
|
|
653
914
|
"char": "d",
|
|
654
915
|
"description": "Show what would change without making changes",
|
|
@@ -673,6 +934,14 @@
|
|
|
673
934
|
"type": "boolean"
|
|
674
935
|
}
|
|
675
936
|
},
|
|
937
|
+
"yesFlag": {
|
|
938
|
+
"yes": {
|
|
939
|
+
"char": "y",
|
|
940
|
+
"description": "Answer yes to confirmation prompts",
|
|
941
|
+
"allowNo": false,
|
|
942
|
+
"type": "boolean"
|
|
943
|
+
}
|
|
944
|
+
},
|
|
676
945
|
"isESM": true,
|
|
677
946
|
"relativePath": [
|
|
678
947
|
"dist",
|
|
@@ -690,6 +959,13 @@
|
|
|
690
959
|
"$ lps plugin pull --dry-run"
|
|
691
960
|
],
|
|
692
961
|
"flags": {
|
|
962
|
+
"env": {
|
|
963
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
964
|
+
"name": "env",
|
|
965
|
+
"hasDynamicHelp": false,
|
|
966
|
+
"multiple": false,
|
|
967
|
+
"type": "option"
|
|
968
|
+
},
|
|
693
969
|
"dry-run": {
|
|
694
970
|
"char": "d",
|
|
695
971
|
"description": "Show what would change without making changes",
|
|
@@ -714,6 +990,14 @@
|
|
|
714
990
|
"type": "boolean"
|
|
715
991
|
}
|
|
716
992
|
},
|
|
993
|
+
"yesFlag": {
|
|
994
|
+
"yes": {
|
|
995
|
+
"char": "y",
|
|
996
|
+
"description": "Answer yes to confirmation prompts",
|
|
997
|
+
"allowNo": false,
|
|
998
|
+
"type": "boolean"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
717
1001
|
"isESM": true,
|
|
718
1002
|
"relativePath": [
|
|
719
1003
|
"dist",
|
|
@@ -731,12 +1015,26 @@
|
|
|
731
1015
|
"$ lps plugin push --dry-run"
|
|
732
1016
|
],
|
|
733
1017
|
"flags": {
|
|
1018
|
+
"env": {
|
|
1019
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1020
|
+
"name": "env",
|
|
1021
|
+
"hasDynamicHelp": false,
|
|
1022
|
+
"multiple": false,
|
|
1023
|
+
"type": "option"
|
|
1024
|
+
},
|
|
734
1025
|
"dry-run": {
|
|
735
1026
|
"char": "d",
|
|
736
1027
|
"description": "Show what would change without making changes",
|
|
737
1028
|
"name": "dry-run",
|
|
738
1029
|
"allowNo": false,
|
|
739
1030
|
"type": "boolean"
|
|
1031
|
+
},
|
|
1032
|
+
"yes": {
|
|
1033
|
+
"char": "y",
|
|
1034
|
+
"description": "Answer yes to confirmation prompts",
|
|
1035
|
+
"name": "yes",
|
|
1036
|
+
"allowNo": false,
|
|
1037
|
+
"type": "boolean"
|
|
740
1038
|
}
|
|
741
1039
|
},
|
|
742
1040
|
"hasDynamicHelp": false,
|
|
@@ -833,7 +1131,15 @@
|
|
|
833
1131
|
"examples": [
|
|
834
1132
|
"$ lps project push"
|
|
835
1133
|
],
|
|
836
|
-
"flags": {
|
|
1134
|
+
"flags": {
|
|
1135
|
+
"yes": {
|
|
1136
|
+
"char": "y",
|
|
1137
|
+
"description": "Answer yes to confirmation prompts",
|
|
1138
|
+
"name": "yes",
|
|
1139
|
+
"allowNo": false,
|
|
1140
|
+
"type": "boolean"
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
837
1143
|
"hasDynamicHelp": false,
|
|
838
1144
|
"hiddenAliases": [],
|
|
839
1145
|
"id": "project:push",
|
|
@@ -907,6 +1213,13 @@
|
|
|
907
1213
|
"$ lps seo list --post-type post"
|
|
908
1214
|
],
|
|
909
1215
|
"flags": {
|
|
1216
|
+
"env": {
|
|
1217
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1218
|
+
"name": "env",
|
|
1219
|
+
"hasDynamicHelp": false,
|
|
1220
|
+
"multiple": false,
|
|
1221
|
+
"type": "option"
|
|
1222
|
+
},
|
|
910
1223
|
"json": {
|
|
911
1224
|
"char": "j",
|
|
912
1225
|
"description": "Output in JSON format",
|
|
@@ -938,6 +1251,14 @@
|
|
|
938
1251
|
"type": "boolean"
|
|
939
1252
|
}
|
|
940
1253
|
},
|
|
1254
|
+
"yesFlag": {
|
|
1255
|
+
"yes": {
|
|
1256
|
+
"char": "y",
|
|
1257
|
+
"description": "Answer yes to confirmation prompts",
|
|
1258
|
+
"allowNo": false,
|
|
1259
|
+
"type": "boolean"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
941
1262
|
"isESM": true,
|
|
942
1263
|
"relativePath": [
|
|
943
1264
|
"dist",
|
|
@@ -960,6 +1281,13 @@
|
|
|
960
1281
|
"$ lps seo pull --post-type post --post-type page"
|
|
961
1282
|
],
|
|
962
1283
|
"flags": {
|
|
1284
|
+
"env": {
|
|
1285
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1286
|
+
"name": "env",
|
|
1287
|
+
"hasDynamicHelp": false,
|
|
1288
|
+
"multiple": false,
|
|
1289
|
+
"type": "option"
|
|
1290
|
+
},
|
|
963
1291
|
"dry-run": {
|
|
964
1292
|
"char": "d",
|
|
965
1293
|
"description": "Show what would change without making changes",
|
|
@@ -967,6 +1295,13 @@
|
|
|
967
1295
|
"allowNo": false,
|
|
968
1296
|
"type": "boolean"
|
|
969
1297
|
},
|
|
1298
|
+
"yes": {
|
|
1299
|
+
"char": "y",
|
|
1300
|
+
"description": "Answer yes to confirmation prompts",
|
|
1301
|
+
"name": "yes",
|
|
1302
|
+
"allowNo": false,
|
|
1303
|
+
"type": "boolean"
|
|
1304
|
+
},
|
|
970
1305
|
"post-type": {
|
|
971
1306
|
"description": "Limit post meta to specific post types",
|
|
972
1307
|
"name": "post-type",
|
|
@@ -991,6 +1326,14 @@
|
|
|
991
1326
|
"type": "boolean"
|
|
992
1327
|
}
|
|
993
1328
|
},
|
|
1329
|
+
"yesFlag": {
|
|
1330
|
+
"yes": {
|
|
1331
|
+
"char": "y",
|
|
1332
|
+
"description": "Answer yes to confirmation prompts",
|
|
1333
|
+
"allowNo": false,
|
|
1334
|
+
"type": "boolean"
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
994
1337
|
"isESM": true,
|
|
995
1338
|
"relativePath": [
|
|
996
1339
|
"dist",
|
|
@@ -1012,12 +1355,26 @@
|
|
|
1012
1355
|
"$ lps seo push"
|
|
1013
1356
|
],
|
|
1014
1357
|
"flags": {
|
|
1358
|
+
"env": {
|
|
1359
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1360
|
+
"name": "env",
|
|
1361
|
+
"hasDynamicHelp": false,
|
|
1362
|
+
"multiple": false,
|
|
1363
|
+
"type": "option"
|
|
1364
|
+
},
|
|
1015
1365
|
"dry-run": {
|
|
1016
1366
|
"char": "d",
|
|
1017
1367
|
"description": "Show what would change without making changes",
|
|
1018
1368
|
"name": "dry-run",
|
|
1019
1369
|
"allowNo": false,
|
|
1020
1370
|
"type": "boolean"
|
|
1371
|
+
},
|
|
1372
|
+
"yes": {
|
|
1373
|
+
"char": "y",
|
|
1374
|
+
"description": "Answer yes to confirmation prompts",
|
|
1375
|
+
"name": "yes",
|
|
1376
|
+
"allowNo": false,
|
|
1377
|
+
"type": "boolean"
|
|
1021
1378
|
}
|
|
1022
1379
|
},
|
|
1023
1380
|
"hasDynamicHelp": false,
|
|
@@ -1043,6 +1400,13 @@
|
|
|
1043
1400
|
"$ lps snippet list"
|
|
1044
1401
|
],
|
|
1045
1402
|
"flags": {
|
|
1403
|
+
"env": {
|
|
1404
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1405
|
+
"name": "env",
|
|
1406
|
+
"hasDynamicHelp": false,
|
|
1407
|
+
"multiple": false,
|
|
1408
|
+
"type": "option"
|
|
1409
|
+
},
|
|
1046
1410
|
"json": {
|
|
1047
1411
|
"char": "j",
|
|
1048
1412
|
"description": "Output in JSON format",
|
|
@@ -1067,6 +1431,14 @@
|
|
|
1067
1431
|
"type": "boolean"
|
|
1068
1432
|
}
|
|
1069
1433
|
},
|
|
1434
|
+
"yesFlag": {
|
|
1435
|
+
"yes": {
|
|
1436
|
+
"char": "y",
|
|
1437
|
+
"description": "Answer yes to confirmation prompts",
|
|
1438
|
+
"allowNo": false,
|
|
1439
|
+
"type": "boolean"
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1070
1442
|
"isESM": true,
|
|
1071
1443
|
"relativePath": [
|
|
1072
1444
|
"dist",
|
|
@@ -1119,12 +1491,26 @@
|
|
|
1119
1491
|
"$ lps snippet pull --path ./snippets"
|
|
1120
1492
|
],
|
|
1121
1493
|
"flags": {
|
|
1494
|
+
"env": {
|
|
1495
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1496
|
+
"name": "env",
|
|
1497
|
+
"hasDynamicHelp": false,
|
|
1498
|
+
"multiple": false,
|
|
1499
|
+
"type": "option"
|
|
1500
|
+
},
|
|
1122
1501
|
"dry-run": {
|
|
1123
1502
|
"char": "d",
|
|
1124
1503
|
"description": "Show what would change without making changes",
|
|
1125
1504
|
"name": "dry-run",
|
|
1126
1505
|
"allowNo": false,
|
|
1127
1506
|
"type": "boolean"
|
|
1507
|
+
},
|
|
1508
|
+
"yes": {
|
|
1509
|
+
"char": "y",
|
|
1510
|
+
"description": "Answer yes to confirmation prompts",
|
|
1511
|
+
"name": "yes",
|
|
1512
|
+
"allowNo": false,
|
|
1513
|
+
"type": "boolean"
|
|
1128
1514
|
}
|
|
1129
1515
|
},
|
|
1130
1516
|
"hasDynamicHelp": false,
|
|
@@ -1143,6 +1529,14 @@
|
|
|
1143
1529
|
"type": "boolean"
|
|
1144
1530
|
}
|
|
1145
1531
|
},
|
|
1532
|
+
"yesFlag": {
|
|
1533
|
+
"yes": {
|
|
1534
|
+
"char": "y",
|
|
1535
|
+
"description": "Answer yes to confirmation prompts",
|
|
1536
|
+
"allowNo": false,
|
|
1537
|
+
"type": "boolean"
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1146
1540
|
"isESM": true,
|
|
1147
1541
|
"relativePath": [
|
|
1148
1542
|
"dist",
|
|
@@ -1165,12 +1559,26 @@
|
|
|
1165
1559
|
"$ lps snippet push --path ./snippets"
|
|
1166
1560
|
],
|
|
1167
1561
|
"flags": {
|
|
1562
|
+
"env": {
|
|
1563
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1564
|
+
"name": "env",
|
|
1565
|
+
"hasDynamicHelp": false,
|
|
1566
|
+
"multiple": false,
|
|
1567
|
+
"type": "option"
|
|
1568
|
+
},
|
|
1168
1569
|
"dry-run": {
|
|
1169
1570
|
"char": "d",
|
|
1170
1571
|
"description": "Show what would change without making changes",
|
|
1171
1572
|
"name": "dry-run",
|
|
1172
1573
|
"allowNo": false,
|
|
1173
1574
|
"type": "boolean"
|
|
1575
|
+
},
|
|
1576
|
+
"yes": {
|
|
1577
|
+
"char": "y",
|
|
1578
|
+
"description": "Answer yes to confirmation prompts",
|
|
1579
|
+
"name": "yes",
|
|
1580
|
+
"allowNo": false,
|
|
1581
|
+
"type": "boolean"
|
|
1174
1582
|
}
|
|
1175
1583
|
},
|
|
1176
1584
|
"hasDynamicHelp": false,
|
|
@@ -1237,5 +1645,5 @@
|
|
|
1237
1645
|
]
|
|
1238
1646
|
}
|
|
1239
1647
|
},
|
|
1240
|
-
"version": "0.
|
|
1648
|
+
"version": "0.19.0"
|
|
1241
1649
|
}
|