@loopress/cli 0.32.0 → 0.32.2
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 +121 -121
- package/dist/lib/diff-command.js +1 -1
- package/dist/lib/push-command.js +10 -3
- package/dist/lib/resource-state.d.ts +1 -1
- package/dist/lib/resource-state.js +20 -6
- package/dist/utils/acf-format.d.ts +1 -0
- package/dist/utils/acf-format.js +5 -0
- package/dist/utils/php-top-level.js +9 -4
- package/dist/utils/theme-styles-format.js +29 -1
- package/oclif.manifest.json +436 -436
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1522,38 +1522,37 @@
|
|
|
1522
1522
|
"rollback.js"
|
|
1523
1523
|
]
|
|
1524
1524
|
},
|
|
1525
|
-
"
|
|
1525
|
+
"app:list": {
|
|
1526
1526
|
"aliases": [],
|
|
1527
1527
|
"args": {},
|
|
1528
|
-
"description": "
|
|
1528
|
+
"description": "List single-page apps deployed to WordPress",
|
|
1529
1529
|
"examples": [
|
|
1530
|
-
"$ lps
|
|
1531
|
-
"$ lps composer init --dry-run"
|
|
1530
|
+
"$ lps app list"
|
|
1532
1531
|
],
|
|
1533
1532
|
"flags": {
|
|
1533
|
+
"json": {
|
|
1534
|
+
"description": "Format output as json.",
|
|
1535
|
+
"helpGroup": "GLOBAL",
|
|
1536
|
+
"name": "json",
|
|
1537
|
+
"allowNo": false,
|
|
1538
|
+
"type": "boolean"
|
|
1539
|
+
},
|
|
1534
1540
|
"env": {
|
|
1535
1541
|
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
1536
1542
|
"name": "env",
|
|
1537
1543
|
"hasDynamicHelp": false,
|
|
1538
1544
|
"multiple": false,
|
|
1539
1545
|
"type": "option"
|
|
1540
|
-
},
|
|
1541
|
-
"dry-run": {
|
|
1542
|
-
"char": "d",
|
|
1543
|
-
"description": "Show what would change without making changes",
|
|
1544
|
-
"name": "dry-run",
|
|
1545
|
-
"allowNo": false,
|
|
1546
|
-
"type": "boolean"
|
|
1547
1546
|
}
|
|
1548
1547
|
},
|
|
1549
1548
|
"hasDynamicHelp": false,
|
|
1550
1549
|
"hiddenAliases": [],
|
|
1551
|
-
"id": "
|
|
1550
|
+
"id": "app:list",
|
|
1552
1551
|
"pluginAlias": "@loopress/cli",
|
|
1553
1552
|
"pluginName": "@loopress/cli",
|
|
1554
1553
|
"pluginType": "core",
|
|
1555
1554
|
"strict": true,
|
|
1556
|
-
"enableJsonFlag":
|
|
1555
|
+
"enableJsonFlag": true,
|
|
1557
1556
|
"dryRunFlag": {
|
|
1558
1557
|
"dry-run": {
|
|
1559
1558
|
"char": "d",
|
|
@@ -1574,17 +1573,21 @@
|
|
|
1574
1573
|
"relativePath": [
|
|
1575
1574
|
"dist",
|
|
1576
1575
|
"commands",
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1576
|
+
"app",
|
|
1577
|
+
"list.js"
|
|
1579
1578
|
]
|
|
1580
1579
|
},
|
|
1581
|
-
"
|
|
1580
|
+
"app:pull": {
|
|
1582
1581
|
"aliases": [],
|
|
1583
|
-
"args": {
|
|
1584
|
-
|
|
1582
|
+
"args": {
|
|
1583
|
+
"path": {
|
|
1584
|
+
"description": "Path to apps directory (overrides project config)",
|
|
1585
|
+
"name": "path"
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
"description": "Pull single-page app bundles from WordPress into local files",
|
|
1585
1589
|
"examples": [
|
|
1586
|
-
"$ lps
|
|
1587
|
-
"$ lps composer pull --dry-run"
|
|
1590
|
+
"$ lps app pull"
|
|
1588
1591
|
],
|
|
1589
1592
|
"flags": {
|
|
1590
1593
|
"json": {
|
|
@@ -1607,11 +1610,18 @@
|
|
|
1607
1610
|
"name": "dry-run",
|
|
1608
1611
|
"allowNo": false,
|
|
1609
1612
|
"type": "boolean"
|
|
1613
|
+
},
|
|
1614
|
+
"yes": {
|
|
1615
|
+
"char": "y",
|
|
1616
|
+
"description": "Answer yes to confirmation prompts",
|
|
1617
|
+
"name": "yes",
|
|
1618
|
+
"allowNo": false,
|
|
1619
|
+
"type": "boolean"
|
|
1610
1620
|
}
|
|
1611
1621
|
},
|
|
1612
1622
|
"hasDynamicHelp": false,
|
|
1613
1623
|
"hiddenAliases": [],
|
|
1614
|
-
"id": "
|
|
1624
|
+
"id": "app:pull",
|
|
1615
1625
|
"pluginAlias": "@loopress/cli",
|
|
1616
1626
|
"pluginName": "@loopress/cli",
|
|
1617
1627
|
"pluginType": "core",
|
|
@@ -1637,17 +1647,23 @@
|
|
|
1637
1647
|
"relativePath": [
|
|
1638
1648
|
"dist",
|
|
1639
1649
|
"commands",
|
|
1640
|
-
"
|
|
1650
|
+
"app",
|
|
1641
1651
|
"pull.js"
|
|
1642
1652
|
]
|
|
1643
1653
|
},
|
|
1644
|
-
"
|
|
1654
|
+
"app:push": {
|
|
1645
1655
|
"aliases": [],
|
|
1646
|
-
"args": {
|
|
1647
|
-
|
|
1656
|
+
"args": {
|
|
1657
|
+
"name": {
|
|
1658
|
+
"description": "Push only this app (defaults to every app in the directory)",
|
|
1659
|
+
"name": "name"
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"description": "Build and push single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a dist/ folder. When the app has a package.json with a `build` script, it runs first (use --no-build to skip it). Only files whose content changed are uploaded.",
|
|
1648
1663
|
"examples": [
|
|
1649
|
-
"$ lps
|
|
1650
|
-
"$ lps
|
|
1664
|
+
"$ lps app push",
|
|
1665
|
+
"$ lps app push search",
|
|
1666
|
+
"$ lps app push --no-build"
|
|
1651
1667
|
],
|
|
1652
1668
|
"flags": {
|
|
1653
1669
|
"json": {
|
|
@@ -1676,6 +1692,12 @@
|
|
|
1676
1692
|
"allowNo": false,
|
|
1677
1693
|
"type": "boolean"
|
|
1678
1694
|
},
|
|
1695
|
+
"build": {
|
|
1696
|
+
"description": "Run the app's package.json build script before pushing",
|
|
1697
|
+
"name": "build",
|
|
1698
|
+
"allowNo": true,
|
|
1699
|
+
"type": "boolean"
|
|
1700
|
+
},
|
|
1679
1701
|
"dry-run": {
|
|
1680
1702
|
"char": "d",
|
|
1681
1703
|
"description": "Show what would change without making changes",
|
|
@@ -1689,17 +1711,11 @@
|
|
|
1689
1711
|
"name": "yes",
|
|
1690
1712
|
"allowNo": false,
|
|
1691
1713
|
"type": "boolean"
|
|
1692
|
-
},
|
|
1693
|
-
"force": {
|
|
1694
|
-
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1695
|
-
"name": "force",
|
|
1696
|
-
"allowNo": false,
|
|
1697
|
-
"type": "boolean"
|
|
1698
1714
|
}
|
|
1699
1715
|
},
|
|
1700
1716
|
"hasDynamicHelp": false,
|
|
1701
1717
|
"hiddenAliases": [],
|
|
1702
|
-
"id": "
|
|
1718
|
+
"id": "app:push",
|
|
1703
1719
|
"pluginAlias": "@loopress/cli",
|
|
1704
1720
|
"pluginName": "@loopress/cli",
|
|
1705
1721
|
"pluginType": "core",
|
|
@@ -1725,23 +1741,22 @@
|
|
|
1725
1741
|
"relativePath": [
|
|
1726
1742
|
"dist",
|
|
1727
1743
|
"commands",
|
|
1728
|
-
"
|
|
1744
|
+
"app",
|
|
1729
1745
|
"push.js"
|
|
1730
1746
|
]
|
|
1731
1747
|
},
|
|
1732
|
-
"
|
|
1748
|
+
"app:remove": {
|
|
1733
1749
|
"aliases": [],
|
|
1734
1750
|
"args": {
|
|
1735
|
-
"
|
|
1736
|
-
"description": "
|
|
1737
|
-
"name": "
|
|
1751
|
+
"name": {
|
|
1752
|
+
"description": "App to remove from WordPress",
|
|
1753
|
+
"name": "name",
|
|
1738
1754
|
"required": true
|
|
1739
1755
|
}
|
|
1740
1756
|
},
|
|
1741
|
-
"description": "
|
|
1757
|
+
"description": "Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the shortcode. Local files are left untouched.",
|
|
1742
1758
|
"examples": [
|
|
1743
|
-
"$ lps
|
|
1744
|
-
"$ lps content copy staging --dry-run"
|
|
1759
|
+
"$ lps app remove search"
|
|
1745
1760
|
],
|
|
1746
1761
|
"flags": {
|
|
1747
1762
|
"json": {
|
|
@@ -1752,7 +1767,7 @@
|
|
|
1752
1767
|
"type": "boolean"
|
|
1753
1768
|
},
|
|
1754
1769
|
"env": {
|
|
1755
|
-
"
|
|
1770
|
+
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
1756
1771
|
"name": "env",
|
|
1757
1772
|
"hasDynamicHelp": false,
|
|
1758
1773
|
"multiple": false,
|
|
@@ -1775,7 +1790,7 @@
|
|
|
1775
1790
|
},
|
|
1776
1791
|
"hasDynamicHelp": false,
|
|
1777
1792
|
"hiddenAliases": [],
|
|
1778
|
-
"id": "
|
|
1793
|
+
"id": "app:remove",
|
|
1779
1794
|
"pluginAlias": "@loopress/cli",
|
|
1780
1795
|
"pluginName": "@loopress/cli",
|
|
1781
1796
|
"pluginType": "core",
|
|
@@ -1801,41 +1816,42 @@
|
|
|
1801
1816
|
"relativePath": [
|
|
1802
1817
|
"dist",
|
|
1803
1818
|
"commands",
|
|
1804
|
-
"
|
|
1805
|
-
"
|
|
1819
|
+
"app",
|
|
1820
|
+
"remove.js"
|
|
1806
1821
|
]
|
|
1807
1822
|
},
|
|
1808
|
-
"
|
|
1823
|
+
"composer:init": {
|
|
1809
1824
|
"aliases": [],
|
|
1810
1825
|
"args": {},
|
|
1811
|
-
"description": "
|
|
1826
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
1812
1827
|
"examples": [
|
|
1813
|
-
"$ lps
|
|
1828
|
+
"$ lps composer init",
|
|
1829
|
+
"$ lps composer init --dry-run"
|
|
1814
1830
|
],
|
|
1815
1831
|
"flags": {
|
|
1816
|
-
"json": {
|
|
1817
|
-
"description": "Format output as json.",
|
|
1818
|
-
"helpGroup": "GLOBAL",
|
|
1819
|
-
"name": "json",
|
|
1820
|
-
"allowNo": false,
|
|
1821
|
-
"type": "boolean"
|
|
1822
|
-
},
|
|
1823
1832
|
"env": {
|
|
1824
1833
|
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
1825
1834
|
"name": "env",
|
|
1826
1835
|
"hasDynamicHelp": false,
|
|
1827
1836
|
"multiple": false,
|
|
1828
1837
|
"type": "option"
|
|
1838
|
+
},
|
|
1839
|
+
"dry-run": {
|
|
1840
|
+
"char": "d",
|
|
1841
|
+
"description": "Show what would change without making changes",
|
|
1842
|
+
"name": "dry-run",
|
|
1843
|
+
"allowNo": false,
|
|
1844
|
+
"type": "boolean"
|
|
1829
1845
|
}
|
|
1830
1846
|
},
|
|
1831
1847
|
"hasDynamicHelp": false,
|
|
1832
1848
|
"hiddenAliases": [],
|
|
1833
|
-
"id": "
|
|
1849
|
+
"id": "composer:init",
|
|
1834
1850
|
"pluginAlias": "@loopress/cli",
|
|
1835
1851
|
"pluginName": "@loopress/cli",
|
|
1836
1852
|
"pluginType": "core",
|
|
1837
1853
|
"strict": true,
|
|
1838
|
-
"enableJsonFlag":
|
|
1854
|
+
"enableJsonFlag": false,
|
|
1839
1855
|
"dryRunFlag": {
|
|
1840
1856
|
"dry-run": {
|
|
1841
1857
|
"char": "d",
|
|
@@ -1856,21 +1872,17 @@
|
|
|
1856
1872
|
"relativePath": [
|
|
1857
1873
|
"dist",
|
|
1858
1874
|
"commands",
|
|
1859
|
-
"
|
|
1860
|
-
"
|
|
1875
|
+
"composer",
|
|
1876
|
+
"init.js"
|
|
1861
1877
|
]
|
|
1862
1878
|
},
|
|
1863
|
-
"
|
|
1879
|
+
"composer:pull": {
|
|
1864
1880
|
"aliases": [],
|
|
1865
|
-
"args": {
|
|
1866
|
-
|
|
1867
|
-
"description": "Path to apps directory (overrides project config)",
|
|
1868
|
-
"name": "path"
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
"description": "Pull single-page app bundles from WordPress into local files",
|
|
1881
|
+
"args": {},
|
|
1882
|
+
"description": "Pull composer.json and composer.lock from WordPress into local files",
|
|
1872
1883
|
"examples": [
|
|
1873
|
-
"$ lps
|
|
1884
|
+
"$ lps composer pull",
|
|
1885
|
+
"$ lps composer pull --dry-run"
|
|
1874
1886
|
],
|
|
1875
1887
|
"flags": {
|
|
1876
1888
|
"json": {
|
|
@@ -1893,18 +1905,11 @@
|
|
|
1893
1905
|
"name": "dry-run",
|
|
1894
1906
|
"allowNo": false,
|
|
1895
1907
|
"type": "boolean"
|
|
1896
|
-
},
|
|
1897
|
-
"yes": {
|
|
1898
|
-
"char": "y",
|
|
1899
|
-
"description": "Answer yes to confirmation prompts",
|
|
1900
|
-
"name": "yes",
|
|
1901
|
-
"allowNo": false,
|
|
1902
|
-
"type": "boolean"
|
|
1903
1908
|
}
|
|
1904
1909
|
},
|
|
1905
1910
|
"hasDynamicHelp": false,
|
|
1906
1911
|
"hiddenAliases": [],
|
|
1907
|
-
"id": "
|
|
1912
|
+
"id": "composer:pull",
|
|
1908
1913
|
"pluginAlias": "@loopress/cli",
|
|
1909
1914
|
"pluginName": "@loopress/cli",
|
|
1910
1915
|
"pluginType": "core",
|
|
@@ -1930,23 +1935,17 @@
|
|
|
1930
1935
|
"relativePath": [
|
|
1931
1936
|
"dist",
|
|
1932
1937
|
"commands",
|
|
1933
|
-
"
|
|
1938
|
+
"composer",
|
|
1934
1939
|
"pull.js"
|
|
1935
1940
|
]
|
|
1936
1941
|
},
|
|
1937
|
-
"
|
|
1942
|
+
"composer:push": {
|
|
1938
1943
|
"aliases": [],
|
|
1939
|
-
"args": {
|
|
1940
|
-
|
|
1941
|
-
"description": "Push only this app (defaults to every app in the directory)",
|
|
1942
|
-
"name": "name"
|
|
1943
|
-
}
|
|
1944
|
-
},
|
|
1945
|
-
"description": "Build and push single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a dist/ folder. When the app has a package.json with a `build` script, it runs first (use --no-build to skip it). Only files whose content changed are uploaded.",
|
|
1944
|
+
"args": {},
|
|
1945
|
+
"description": "Push composer.json to WordPress and run Composer to resolve and install dependencies",
|
|
1946
1946
|
"examples": [
|
|
1947
|
-
"$ lps
|
|
1948
|
-
"$ lps
|
|
1949
|
-
"$ lps app push --no-build"
|
|
1947
|
+
"$ lps composer push",
|
|
1948
|
+
"$ lps composer push --dry-run"
|
|
1950
1949
|
],
|
|
1951
1950
|
"flags": {
|
|
1952
1951
|
"json": {
|
|
@@ -1975,12 +1974,6 @@
|
|
|
1975
1974
|
"allowNo": false,
|
|
1976
1975
|
"type": "boolean"
|
|
1977
1976
|
},
|
|
1978
|
-
"build": {
|
|
1979
|
-
"description": "Run the app's package.json build script before pushing",
|
|
1980
|
-
"name": "build",
|
|
1981
|
-
"allowNo": true,
|
|
1982
|
-
"type": "boolean"
|
|
1983
|
-
},
|
|
1984
1977
|
"dry-run": {
|
|
1985
1978
|
"char": "d",
|
|
1986
1979
|
"description": "Show what would change without making changes",
|
|
@@ -1994,11 +1987,17 @@
|
|
|
1994
1987
|
"name": "yes",
|
|
1995
1988
|
"allowNo": false,
|
|
1996
1989
|
"type": "boolean"
|
|
1990
|
+
},
|
|
1991
|
+
"force": {
|
|
1992
|
+
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1993
|
+
"name": "force",
|
|
1994
|
+
"allowNo": false,
|
|
1995
|
+
"type": "boolean"
|
|
1997
1996
|
}
|
|
1998
1997
|
},
|
|
1999
1998
|
"hasDynamicHelp": false,
|
|
2000
1999
|
"hiddenAliases": [],
|
|
2001
|
-
"id": "
|
|
2000
|
+
"id": "composer:push",
|
|
2002
2001
|
"pluginAlias": "@loopress/cli",
|
|
2003
2002
|
"pluginName": "@loopress/cli",
|
|
2004
2003
|
"pluginType": "core",
|
|
@@ -2024,22 +2023,23 @@
|
|
|
2024
2023
|
"relativePath": [
|
|
2025
2024
|
"dist",
|
|
2026
2025
|
"commands",
|
|
2027
|
-
"
|
|
2026
|
+
"composer",
|
|
2028
2027
|
"push.js"
|
|
2029
2028
|
]
|
|
2030
2029
|
},
|
|
2031
|
-
"
|
|
2030
|
+
"content:copy": {
|
|
2032
2031
|
"aliases": [],
|
|
2033
2032
|
"args": {
|
|
2034
|
-
"
|
|
2035
|
-
"description": "
|
|
2036
|
-
"name": "
|
|
2033
|
+
"from": {
|
|
2034
|
+
"description": "Environment to copy the content from",
|
|
2035
|
+
"name": "from",
|
|
2037
2036
|
"required": true
|
|
2038
2037
|
}
|
|
2039
2038
|
},
|
|
2040
|
-
"description": "
|
|
2039
|
+
"description": "Replace the local site's content (posts, pages, public custom post types, terms) with the content of <from>, then push the project to the local site so tracked configuration wins. Media stay served by <from>, users, comments and orders are never copied.",
|
|
2041
2040
|
"examples": [
|
|
2042
|
-
"$ lps
|
|
2041
|
+
"$ lps content copy production",
|
|
2042
|
+
"$ lps content copy staging --dry-run"
|
|
2043
2043
|
],
|
|
2044
2044
|
"flags": {
|
|
2045
2045
|
"json": {
|
|
@@ -2050,7 +2050,7 @@
|
|
|
2050
2050
|
"type": "boolean"
|
|
2051
2051
|
},
|
|
2052
2052
|
"env": {
|
|
2053
|
-
"
|
|
2053
|
+
"hidden": true,
|
|
2054
2054
|
"name": "env",
|
|
2055
2055
|
"hasDynamicHelp": false,
|
|
2056
2056
|
"multiple": false,
|
|
@@ -2073,7 +2073,7 @@
|
|
|
2073
2073
|
},
|
|
2074
2074
|
"hasDynamicHelp": false,
|
|
2075
2075
|
"hiddenAliases": [],
|
|
2076
|
-
"id": "
|
|
2076
|
+
"id": "content:copy",
|
|
2077
2077
|
"pluginAlias": "@loopress/cli",
|
|
2078
2078
|
"pluginName": "@loopress/cli",
|
|
2079
2079
|
"pluginType": "core",
|
|
@@ -2099,8 +2099,8 @@
|
|
|
2099
2099
|
"relativePath": [
|
|
2100
2100
|
"dist",
|
|
2101
2101
|
"commands",
|
|
2102
|
-
"
|
|
2103
|
-
"
|
|
2102
|
+
"content",
|
|
2103
|
+
"copy.js"
|
|
2104
2104
|
]
|
|
2105
2105
|
},
|
|
2106
2106
|
"cpt:diff": {
|
|
@@ -2563,19 +2563,19 @@
|
|
|
2563
2563
|
"rollback.js"
|
|
2564
2564
|
]
|
|
2565
2565
|
},
|
|
2566
|
-
"
|
|
2566
|
+
"hook:diff": {
|
|
2567
2567
|
"aliases": [],
|
|
2568
2568
|
"args": {
|
|
2569
2569
|
"path": {
|
|
2570
|
-
"description": "Path to
|
|
2570
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2571
2571
|
"name": "path"
|
|
2572
2572
|
}
|
|
2573
2573
|
},
|
|
2574
|
-
"description": "Show what differs in
|
|
2574
|
+
"description": "Show what differs in hook files between your local files and a WordPress environment, or between two environments",
|
|
2575
2575
|
"examples": [
|
|
2576
|
-
"$ lps
|
|
2577
|
-
"$ lps
|
|
2578
|
-
"$ lps
|
|
2576
|
+
"$ lps hook diff",
|
|
2577
|
+
"$ lps hook diff --env staging",
|
|
2578
|
+
"$ lps hook diff --env staging --against production"
|
|
2579
2579
|
],
|
|
2580
2580
|
"flags": {
|
|
2581
2581
|
"json": {
|
|
@@ -2602,7 +2602,7 @@
|
|
|
2602
2602
|
},
|
|
2603
2603
|
"hasDynamicHelp": false,
|
|
2604
2604
|
"hiddenAliases": [],
|
|
2605
|
-
"id": "
|
|
2605
|
+
"id": "hook:diff",
|
|
2606
2606
|
"pluginAlias": "@loopress/cli",
|
|
2607
2607
|
"pluginName": "@loopress/cli",
|
|
2608
2608
|
"pluginType": "core",
|
|
@@ -2636,16 +2636,16 @@
|
|
|
2636
2636
|
"relativePath": [
|
|
2637
2637
|
"dist",
|
|
2638
2638
|
"commands",
|
|
2639
|
-
"
|
|
2639
|
+
"hook",
|
|
2640
2640
|
"diff.js"
|
|
2641
2641
|
]
|
|
2642
2642
|
},
|
|
2643
|
-
"
|
|
2643
|
+
"hook:list": {
|
|
2644
2644
|
"aliases": [],
|
|
2645
2645
|
"args": {},
|
|
2646
|
-
"description": "List
|
|
2646
|
+
"description": "List hook files (actions, filters, cron) currently on WordPress",
|
|
2647
2647
|
"examples": [
|
|
2648
|
-
"$ lps
|
|
2648
|
+
"$ lps hook list"
|
|
2649
2649
|
],
|
|
2650
2650
|
"flags": {
|
|
2651
2651
|
"json": {
|
|
@@ -2665,7 +2665,7 @@
|
|
|
2665
2665
|
},
|
|
2666
2666
|
"hasDynamicHelp": false,
|
|
2667
2667
|
"hiddenAliases": [],
|
|
2668
|
-
"id": "
|
|
2668
|
+
"id": "hook:list",
|
|
2669
2669
|
"pluginAlias": "@loopress/cli",
|
|
2670
2670
|
"pluginName": "@loopress/cli",
|
|
2671
2671
|
"pluginType": "core",
|
|
@@ -2691,21 +2691,22 @@
|
|
|
2691
2691
|
"relativePath": [
|
|
2692
2692
|
"dist",
|
|
2693
2693
|
"commands",
|
|
2694
|
-
"
|
|
2694
|
+
"hook",
|
|
2695
2695
|
"list.js"
|
|
2696
2696
|
]
|
|
2697
2697
|
},
|
|
2698
|
-
"
|
|
2698
|
+
"hook:pull": {
|
|
2699
2699
|
"aliases": [],
|
|
2700
2700
|
"args": {
|
|
2701
2701
|
"path": {
|
|
2702
|
-
"description": "Path to
|
|
2702
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2703
2703
|
"name": "path"
|
|
2704
2704
|
}
|
|
2705
2705
|
},
|
|
2706
|
-
"description": "Pull
|
|
2706
|
+
"description": "Pull hook files (actions, filters, cron) from WordPress into local files",
|
|
2707
2707
|
"examples": [
|
|
2708
|
-
"$ lps
|
|
2708
|
+
"$ lps hook pull",
|
|
2709
|
+
"$ lps hook pull --path ./hooks"
|
|
2709
2710
|
],
|
|
2710
2711
|
"flags": {
|
|
2711
2712
|
"json": {
|
|
@@ -2739,7 +2740,7 @@
|
|
|
2739
2740
|
},
|
|
2740
2741
|
"hasDynamicHelp": false,
|
|
2741
2742
|
"hiddenAliases": [],
|
|
2742
|
-
"id": "
|
|
2743
|
+
"id": "hook:pull",
|
|
2743
2744
|
"pluginAlias": "@loopress/cli",
|
|
2744
2745
|
"pluginName": "@loopress/cli",
|
|
2745
2746
|
"pluginType": "core",
|
|
@@ -2765,22 +2766,23 @@
|
|
|
2765
2766
|
"relativePath": [
|
|
2766
2767
|
"dist",
|
|
2767
2768
|
"commands",
|
|
2768
|
-
"
|
|
2769
|
+
"hook",
|
|
2769
2770
|
"pull.js"
|
|
2770
2771
|
]
|
|
2771
2772
|
},
|
|
2772
|
-
"
|
|
2773
|
+
"hook:push": {
|
|
2773
2774
|
"aliases": [],
|
|
2774
2775
|
"args": {
|
|
2775
2776
|
"path": {
|
|
2776
|
-
"description": "Path to
|
|
2777
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2777
2778
|
"name": "path"
|
|
2778
2779
|
}
|
|
2779
2780
|
},
|
|
2780
|
-
"description": "Push local
|
|
2781
|
+
"description": "Push local hook files (actions, filters, cron) to WordPress",
|
|
2781
2782
|
"examples": [
|
|
2782
|
-
"$ lps
|
|
2783
|
-
"$ lps
|
|
2783
|
+
"$ lps hook push",
|
|
2784
|
+
"$ lps hook push --path ./hooks",
|
|
2785
|
+
"$ lps hook push --prune"
|
|
2784
2786
|
],
|
|
2785
2787
|
"flags": {
|
|
2786
2788
|
"json": {
|
|
@@ -2823,16 +2825,16 @@
|
|
|
2823
2825
|
"allowNo": false,
|
|
2824
2826
|
"type": "boolean"
|
|
2825
2827
|
},
|
|
2826
|
-
"
|
|
2827
|
-
"description": "
|
|
2828
|
-
"name": "
|
|
2828
|
+
"prune": {
|
|
2829
|
+
"description": "Delete server-side hook files not present locally after pushing",
|
|
2830
|
+
"name": "prune",
|
|
2829
2831
|
"allowNo": false,
|
|
2830
2832
|
"type": "boolean"
|
|
2831
2833
|
}
|
|
2832
2834
|
},
|
|
2833
2835
|
"hasDynamicHelp": false,
|
|
2834
2836
|
"hiddenAliases": [],
|
|
2835
|
-
"id": "
|
|
2837
|
+
"id": "hook:push",
|
|
2836
2838
|
"pluginAlias": "@loopress/cli",
|
|
2837
2839
|
"pluginName": "@loopress/cli",
|
|
2838
2840
|
"pluginType": "core",
|
|
@@ -2858,24 +2860,102 @@
|
|
|
2858
2860
|
"relativePath": [
|
|
2859
2861
|
"dist",
|
|
2860
2862
|
"commands",
|
|
2861
|
-
"
|
|
2863
|
+
"hook",
|
|
2862
2864
|
"push.js"
|
|
2863
2865
|
]
|
|
2864
2866
|
},
|
|
2865
|
-
"
|
|
2867
|
+
"hook:rm": {
|
|
2868
|
+
"aliases": [
|
|
2869
|
+
"hook:remove"
|
|
2870
|
+
],
|
|
2871
|
+
"args": {
|
|
2872
|
+
"filename": {
|
|
2873
|
+
"description": "The hook file to remove, its slug without the .php extension (e.g. \"hello\" or \"invoice-pdf/[order_id]\")",
|
|
2874
|
+
"name": "filename",
|
|
2875
|
+
"required": true
|
|
2876
|
+
}
|
|
2877
|
+
},
|
|
2878
|
+
"description": "Remove one hook file (action, filter, cron) from WordPress",
|
|
2879
|
+
"examples": [
|
|
2880
|
+
"$ lps hook rm hello",
|
|
2881
|
+
"$ lps hook remove hello --yes"
|
|
2882
|
+
],
|
|
2883
|
+
"flags": {
|
|
2884
|
+
"json": {
|
|
2885
|
+
"description": "Format output as json.",
|
|
2886
|
+
"helpGroup": "GLOBAL",
|
|
2887
|
+
"name": "json",
|
|
2888
|
+
"allowNo": false,
|
|
2889
|
+
"type": "boolean"
|
|
2890
|
+
},
|
|
2891
|
+
"env": {
|
|
2892
|
+
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
2893
|
+
"name": "env",
|
|
2894
|
+
"hasDynamicHelp": false,
|
|
2895
|
+
"multiple": false,
|
|
2896
|
+
"type": "option"
|
|
2897
|
+
},
|
|
2898
|
+
"dry-run": {
|
|
2899
|
+
"char": "d",
|
|
2900
|
+
"description": "Show what would change without making changes",
|
|
2901
|
+
"name": "dry-run",
|
|
2902
|
+
"allowNo": false,
|
|
2903
|
+
"type": "boolean"
|
|
2904
|
+
},
|
|
2905
|
+
"yes": {
|
|
2906
|
+
"char": "y",
|
|
2907
|
+
"description": "Answer yes to confirmation prompts",
|
|
2908
|
+
"name": "yes",
|
|
2909
|
+
"allowNo": false,
|
|
2910
|
+
"type": "boolean"
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
"hasDynamicHelp": false,
|
|
2914
|
+
"hiddenAliases": [],
|
|
2915
|
+
"id": "hook:rm",
|
|
2916
|
+
"pluginAlias": "@loopress/cli",
|
|
2917
|
+
"pluginName": "@loopress/cli",
|
|
2918
|
+
"pluginType": "core",
|
|
2919
|
+
"strict": true,
|
|
2920
|
+
"enableJsonFlag": true,
|
|
2921
|
+
"dryRunFlag": {
|
|
2922
|
+
"dry-run": {
|
|
2923
|
+
"char": "d",
|
|
2924
|
+
"description": "Show what would change without making changes",
|
|
2925
|
+
"allowNo": false,
|
|
2926
|
+
"type": "boolean"
|
|
2927
|
+
}
|
|
2928
|
+
},
|
|
2929
|
+
"yesFlag": {
|
|
2930
|
+
"yes": {
|
|
2931
|
+
"char": "y",
|
|
2932
|
+
"description": "Answer yes to confirmation prompts",
|
|
2933
|
+
"allowNo": false,
|
|
2934
|
+
"type": "boolean"
|
|
2935
|
+
}
|
|
2936
|
+
},
|
|
2937
|
+
"isESM": true,
|
|
2938
|
+
"relativePath": [
|
|
2939
|
+
"dist",
|
|
2940
|
+
"commands",
|
|
2941
|
+
"hook",
|
|
2942
|
+
"rm.js"
|
|
2943
|
+
]
|
|
2944
|
+
},
|
|
2945
|
+
"hook:rollback": {
|
|
2866
2946
|
"aliases": [],
|
|
2867
2947
|
"args": {
|
|
2868
2948
|
"path": {
|
|
2869
|
-
"description": "Path to
|
|
2949
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2870
2950
|
"name": "path"
|
|
2871
2951
|
}
|
|
2872
2952
|
},
|
|
2873
|
-
"description": "Restore
|
|
2953
|
+
"description": "Restore hook files to a snapshot taken automatically before an earlier `lps hook push`",
|
|
2874
2954
|
"examples": [
|
|
2875
|
-
"$ lps
|
|
2876
|
-
"$ lps
|
|
2877
|
-
"$ lps
|
|
2878
|
-
"$ lps
|
|
2955
|
+
"$ lps hook rollback",
|
|
2956
|
+
"$ lps hook rollback --list",
|
|
2957
|
+
"$ lps hook rollback --to 1732000000000",
|
|
2958
|
+
"$ lps hook rollback --dry-run"
|
|
2879
2959
|
],
|
|
2880
2960
|
"flags": {
|
|
2881
2961
|
"json": {
|
|
@@ -2922,7 +3002,7 @@
|
|
|
2922
3002
|
},
|
|
2923
3003
|
"hasDynamicHelp": false,
|
|
2924
3004
|
"hiddenAliases": [],
|
|
2925
|
-
"id": "
|
|
3005
|
+
"id": "hook:rollback",
|
|
2926
3006
|
"pluginAlias": "@loopress/cli",
|
|
2927
3007
|
"pluginName": "@loopress/cli",
|
|
2928
3008
|
"pluginType": "core",
|
|
@@ -2948,23 +3028,23 @@
|
|
|
2948
3028
|
"relativePath": [
|
|
2949
3029
|
"dist",
|
|
2950
3030
|
"commands",
|
|
2951
|
-
"
|
|
3031
|
+
"hook",
|
|
2952
3032
|
"rollback.js"
|
|
2953
3033
|
]
|
|
2954
3034
|
},
|
|
2955
|
-
"
|
|
3035
|
+
"form:diff": {
|
|
2956
3036
|
"aliases": [],
|
|
2957
3037
|
"args": {
|
|
2958
3038
|
"path": {
|
|
2959
|
-
"description": "Path to
|
|
3039
|
+
"description": "Path to forms directory (overrides project config)",
|
|
2960
3040
|
"name": "path"
|
|
2961
3041
|
}
|
|
2962
3042
|
},
|
|
2963
|
-
"description": "Show what differs in
|
|
3043
|
+
"description": "Show what differs in forms between your local files and a WordPress environment, or between two environments",
|
|
2964
3044
|
"examples": [
|
|
2965
|
-
"$ lps
|
|
2966
|
-
"$ lps
|
|
2967
|
-
"$ lps
|
|
3045
|
+
"$ lps form diff",
|
|
3046
|
+
"$ lps form diff --env staging",
|
|
3047
|
+
"$ lps form diff --env staging --against production"
|
|
2968
3048
|
],
|
|
2969
3049
|
"flags": {
|
|
2970
3050
|
"json": {
|
|
@@ -2991,7 +3071,7 @@
|
|
|
2991
3071
|
},
|
|
2992
3072
|
"hasDynamicHelp": false,
|
|
2993
3073
|
"hiddenAliases": [],
|
|
2994
|
-
"id": "
|
|
3074
|
+
"id": "form:diff",
|
|
2995
3075
|
"pluginAlias": "@loopress/cli",
|
|
2996
3076
|
"pluginName": "@loopress/cli",
|
|
2997
3077
|
"pluginType": "core",
|
|
@@ -3025,16 +3105,16 @@
|
|
|
3025
3105
|
"relativePath": [
|
|
3026
3106
|
"dist",
|
|
3027
3107
|
"commands",
|
|
3028
|
-
"
|
|
3108
|
+
"form",
|
|
3029
3109
|
"diff.js"
|
|
3030
3110
|
]
|
|
3031
3111
|
},
|
|
3032
|
-
"
|
|
3112
|
+
"form:list": {
|
|
3033
3113
|
"aliases": [],
|
|
3034
3114
|
"args": {},
|
|
3035
|
-
"description": "List
|
|
3115
|
+
"description": "List forms currently on WordPress",
|
|
3036
3116
|
"examples": [
|
|
3037
|
-
"$ lps
|
|
3117
|
+
"$ lps form list"
|
|
3038
3118
|
],
|
|
3039
3119
|
"flags": {
|
|
3040
3120
|
"json": {
|
|
@@ -3054,7 +3134,7 @@
|
|
|
3054
3134
|
},
|
|
3055
3135
|
"hasDynamicHelp": false,
|
|
3056
3136
|
"hiddenAliases": [],
|
|
3057
|
-
"id": "
|
|
3137
|
+
"id": "form:list",
|
|
3058
3138
|
"pluginAlias": "@loopress/cli",
|
|
3059
3139
|
"pluginName": "@loopress/cli",
|
|
3060
3140
|
"pluginType": "core",
|
|
@@ -3080,22 +3160,21 @@
|
|
|
3080
3160
|
"relativePath": [
|
|
3081
3161
|
"dist",
|
|
3082
3162
|
"commands",
|
|
3083
|
-
"
|
|
3163
|
+
"form",
|
|
3084
3164
|
"list.js"
|
|
3085
3165
|
]
|
|
3086
3166
|
},
|
|
3087
|
-
"
|
|
3167
|
+
"form:pull": {
|
|
3088
3168
|
"aliases": [],
|
|
3089
3169
|
"args": {
|
|
3090
3170
|
"path": {
|
|
3091
|
-
"description": "Path to
|
|
3171
|
+
"description": "Path to forms directory (overrides project config)",
|
|
3092
3172
|
"name": "path"
|
|
3093
3173
|
}
|
|
3094
3174
|
},
|
|
3095
|
-
"description": "Pull
|
|
3175
|
+
"description": "Pull forms from WordPress into local files",
|
|
3096
3176
|
"examples": [
|
|
3097
|
-
"$ lps
|
|
3098
|
-
"$ lps hook pull --path ./hooks"
|
|
3177
|
+
"$ lps form pull"
|
|
3099
3178
|
],
|
|
3100
3179
|
"flags": {
|
|
3101
3180
|
"json": {
|
|
@@ -3129,7 +3208,7 @@
|
|
|
3129
3208
|
},
|
|
3130
3209
|
"hasDynamicHelp": false,
|
|
3131
3210
|
"hiddenAliases": [],
|
|
3132
|
-
"id": "
|
|
3211
|
+
"id": "form:pull",
|
|
3133
3212
|
"pluginAlias": "@loopress/cli",
|
|
3134
3213
|
"pluginName": "@loopress/cli",
|
|
3135
3214
|
"pluginType": "core",
|
|
@@ -3155,23 +3234,22 @@
|
|
|
3155
3234
|
"relativePath": [
|
|
3156
3235
|
"dist",
|
|
3157
3236
|
"commands",
|
|
3158
|
-
"
|
|
3237
|
+
"form",
|
|
3159
3238
|
"pull.js"
|
|
3160
3239
|
]
|
|
3161
3240
|
},
|
|
3162
|
-
"
|
|
3241
|
+
"form:push": {
|
|
3163
3242
|
"aliases": [],
|
|
3164
3243
|
"args": {
|
|
3165
3244
|
"path": {
|
|
3166
|
-
"description": "Path to
|
|
3245
|
+
"description": "Path to forms directory (overrides project config)",
|
|
3167
3246
|
"name": "path"
|
|
3168
3247
|
}
|
|
3169
3248
|
},
|
|
3170
|
-
"description": "Push local
|
|
3249
|
+
"description": "Push local form files to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
3171
3250
|
"examples": [
|
|
3172
|
-
"$ lps
|
|
3173
|
-
"$ lps
|
|
3174
|
-
"$ lps hook push --prune"
|
|
3251
|
+
"$ lps form push",
|
|
3252
|
+
"$ lps form push --allow-notifications"
|
|
3175
3253
|
],
|
|
3176
3254
|
"flags": {
|
|
3177
3255
|
"json": {
|
|
@@ -3214,16 +3292,16 @@
|
|
|
3214
3292
|
"allowNo": false,
|
|
3215
3293
|
"type": "boolean"
|
|
3216
3294
|
},
|
|
3217
|
-
"
|
|
3218
|
-
"description": "
|
|
3219
|
-
"name": "
|
|
3295
|
+
"allow-notifications": {
|
|
3296
|
+
"description": "Also push each form's notification and confirmation settings (recipients, sender, messages). Off by default: the server keeps its own so a stray push can't redirect submissions.",
|
|
3297
|
+
"name": "allow-notifications",
|
|
3220
3298
|
"allowNo": false,
|
|
3221
3299
|
"type": "boolean"
|
|
3222
3300
|
}
|
|
3223
3301
|
},
|
|
3224
3302
|
"hasDynamicHelp": false,
|
|
3225
3303
|
"hiddenAliases": [],
|
|
3226
|
-
"id": "
|
|
3304
|
+
"id": "form:push",
|
|
3227
3305
|
"pluginAlias": "@loopress/cli",
|
|
3228
3306
|
"pluginName": "@loopress/cli",
|
|
3229
3307
|
"pluginType": "core",
|
|
@@ -3249,102 +3327,24 @@
|
|
|
3249
3327
|
"relativePath": [
|
|
3250
3328
|
"dist",
|
|
3251
3329
|
"commands",
|
|
3252
|
-
"
|
|
3330
|
+
"form",
|
|
3253
3331
|
"push.js"
|
|
3254
3332
|
]
|
|
3255
3333
|
},
|
|
3256
|
-
"
|
|
3257
|
-
"aliases": [
|
|
3258
|
-
"hook:remove"
|
|
3259
|
-
],
|
|
3260
|
-
"args": {
|
|
3261
|
-
"filename": {
|
|
3262
|
-
"description": "The hook file to remove, its slug without the .php extension (e.g. \"hello\" or \"invoice-pdf/[order_id]\")",
|
|
3263
|
-
"name": "filename",
|
|
3264
|
-
"required": true
|
|
3265
|
-
}
|
|
3266
|
-
},
|
|
3267
|
-
"description": "Remove one hook file (action, filter, cron) from WordPress",
|
|
3268
|
-
"examples": [
|
|
3269
|
-
"$ lps hook rm hello",
|
|
3270
|
-
"$ lps hook remove hello --yes"
|
|
3271
|
-
],
|
|
3272
|
-
"flags": {
|
|
3273
|
-
"json": {
|
|
3274
|
-
"description": "Format output as json.",
|
|
3275
|
-
"helpGroup": "GLOBAL",
|
|
3276
|
-
"name": "json",
|
|
3277
|
-
"allowNo": false,
|
|
3278
|
-
"type": "boolean"
|
|
3279
|
-
},
|
|
3280
|
-
"env": {
|
|
3281
|
-
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
3282
|
-
"name": "env",
|
|
3283
|
-
"hasDynamicHelp": false,
|
|
3284
|
-
"multiple": false,
|
|
3285
|
-
"type": "option"
|
|
3286
|
-
},
|
|
3287
|
-
"dry-run": {
|
|
3288
|
-
"char": "d",
|
|
3289
|
-
"description": "Show what would change without making changes",
|
|
3290
|
-
"name": "dry-run",
|
|
3291
|
-
"allowNo": false,
|
|
3292
|
-
"type": "boolean"
|
|
3293
|
-
},
|
|
3294
|
-
"yes": {
|
|
3295
|
-
"char": "y",
|
|
3296
|
-
"description": "Answer yes to confirmation prompts",
|
|
3297
|
-
"name": "yes",
|
|
3298
|
-
"allowNo": false,
|
|
3299
|
-
"type": "boolean"
|
|
3300
|
-
}
|
|
3301
|
-
},
|
|
3302
|
-
"hasDynamicHelp": false,
|
|
3303
|
-
"hiddenAliases": [],
|
|
3304
|
-
"id": "hook:rm",
|
|
3305
|
-
"pluginAlias": "@loopress/cli",
|
|
3306
|
-
"pluginName": "@loopress/cli",
|
|
3307
|
-
"pluginType": "core",
|
|
3308
|
-
"strict": true,
|
|
3309
|
-
"enableJsonFlag": true,
|
|
3310
|
-
"dryRunFlag": {
|
|
3311
|
-
"dry-run": {
|
|
3312
|
-
"char": "d",
|
|
3313
|
-
"description": "Show what would change without making changes",
|
|
3314
|
-
"allowNo": false,
|
|
3315
|
-
"type": "boolean"
|
|
3316
|
-
}
|
|
3317
|
-
},
|
|
3318
|
-
"yesFlag": {
|
|
3319
|
-
"yes": {
|
|
3320
|
-
"char": "y",
|
|
3321
|
-
"description": "Answer yes to confirmation prompts",
|
|
3322
|
-
"allowNo": false,
|
|
3323
|
-
"type": "boolean"
|
|
3324
|
-
}
|
|
3325
|
-
},
|
|
3326
|
-
"isESM": true,
|
|
3327
|
-
"relativePath": [
|
|
3328
|
-
"dist",
|
|
3329
|
-
"commands",
|
|
3330
|
-
"hook",
|
|
3331
|
-
"rm.js"
|
|
3332
|
-
]
|
|
3333
|
-
},
|
|
3334
|
-
"hook:rollback": {
|
|
3334
|
+
"form:rollback": {
|
|
3335
3335
|
"aliases": [],
|
|
3336
3336
|
"args": {
|
|
3337
3337
|
"path": {
|
|
3338
|
-
"description": "Path to
|
|
3338
|
+
"description": "Path to forms directory (overrides project config)",
|
|
3339
3339
|
"name": "path"
|
|
3340
3340
|
}
|
|
3341
3341
|
},
|
|
3342
|
-
"description": "Restore
|
|
3342
|
+
"description": "Restore forms to a snapshot taken automatically before an earlier `lps form push`",
|
|
3343
3343
|
"examples": [
|
|
3344
|
-
"$ lps
|
|
3345
|
-
"$ lps
|
|
3346
|
-
"$ lps
|
|
3347
|
-
"$ lps
|
|
3344
|
+
"$ lps form rollback",
|
|
3345
|
+
"$ lps form rollback --list",
|
|
3346
|
+
"$ lps form rollback --to 1732000000000",
|
|
3347
|
+
"$ lps form rollback --dry-run"
|
|
3348
3348
|
],
|
|
3349
3349
|
"flags": {
|
|
3350
3350
|
"json": {
|
|
@@ -3391,7 +3391,7 @@
|
|
|
3391
3391
|
},
|
|
3392
3392
|
"hasDynamicHelp": false,
|
|
3393
3393
|
"hiddenAliases": [],
|
|
3394
|
-
"id": "
|
|
3394
|
+
"id": "form:rollback",
|
|
3395
3395
|
"pluginAlias": "@loopress/cli",
|
|
3396
3396
|
"pluginName": "@loopress/cli",
|
|
3397
3397
|
"pluginType": "core",
|
|
@@ -3417,7 +3417,7 @@
|
|
|
3417
3417
|
"relativePath": [
|
|
3418
3418
|
"dist",
|
|
3419
3419
|
"commands",
|
|
3420
|
-
"
|
|
3420
|
+
"form",
|
|
3421
3421
|
"rollback.js"
|
|
3422
3422
|
]
|
|
3423
3423
|
},
|
|
@@ -6532,19 +6532,19 @@
|
|
|
6532
6532
|
"rollback.js"
|
|
6533
6533
|
]
|
|
6534
6534
|
},
|
|
6535
|
-
"
|
|
6535
|
+
"taxonomy:diff": {
|
|
6536
6536
|
"aliases": [],
|
|
6537
6537
|
"args": {
|
|
6538
6538
|
"path": {
|
|
6539
|
-
"description": "Path to
|
|
6539
|
+
"description": "Path to taxonomies directory (overrides project config)",
|
|
6540
6540
|
"name": "path"
|
|
6541
6541
|
}
|
|
6542
6542
|
},
|
|
6543
|
-
"description": "Show what differs in
|
|
6543
|
+
"description": "Show what differs in taxonomies between your local taxonomies/ files and a WordPress environment, or between two environments",
|
|
6544
6544
|
"examples": [
|
|
6545
|
-
"$ lps
|
|
6546
|
-
"$ lps
|
|
6547
|
-
"$ lps
|
|
6545
|
+
"$ lps taxonomy diff",
|
|
6546
|
+
"$ lps taxonomy diff --env staging",
|
|
6547
|
+
"$ lps taxonomy diff --env staging --against production"
|
|
6548
6548
|
],
|
|
6549
6549
|
"flags": {
|
|
6550
6550
|
"json": {
|
|
@@ -6571,7 +6571,7 @@
|
|
|
6571
6571
|
},
|
|
6572
6572
|
"hasDynamicHelp": false,
|
|
6573
6573
|
"hiddenAliases": [],
|
|
6574
|
-
"id": "
|
|
6574
|
+
"id": "taxonomy:diff",
|
|
6575
6575
|
"pluginAlias": "@loopress/cli",
|
|
6576
6576
|
"pluginName": "@loopress/cli",
|
|
6577
6577
|
"pluginType": "core",
|
|
@@ -6605,16 +6605,16 @@
|
|
|
6605
6605
|
"relativePath": [
|
|
6606
6606
|
"dist",
|
|
6607
6607
|
"commands",
|
|
6608
|
-
"
|
|
6608
|
+
"taxonomy",
|
|
6609
6609
|
"diff.js"
|
|
6610
6610
|
]
|
|
6611
6611
|
},
|
|
6612
|
-
"
|
|
6612
|
+
"taxonomy:list": {
|
|
6613
6613
|
"aliases": [],
|
|
6614
6614
|
"args": {},
|
|
6615
|
-
"description": "List
|
|
6615
|
+
"description": "List the taxonomies registered on WordPress, where each comes from (Loopress, WordPress, ACF, CPT UI, a theme or plugin) and the post types it attaches to. Only Loopress ones are pulled and pushed.",
|
|
6616
6616
|
"examples": [
|
|
6617
|
-
"$ lps
|
|
6617
|
+
"$ lps taxonomy list"
|
|
6618
6618
|
],
|
|
6619
6619
|
"flags": {
|
|
6620
6620
|
"json": {
|
|
@@ -6634,7 +6634,7 @@
|
|
|
6634
6634
|
},
|
|
6635
6635
|
"hasDynamicHelp": false,
|
|
6636
6636
|
"hiddenAliases": [],
|
|
6637
|
-
"id": "
|
|
6637
|
+
"id": "taxonomy:list",
|
|
6638
6638
|
"pluginAlias": "@loopress/cli",
|
|
6639
6639
|
"pluginName": "@loopress/cli",
|
|
6640
6640
|
"pluginType": "core",
|
|
@@ -6660,52 +6660,95 @@
|
|
|
6660
6660
|
"relativePath": [
|
|
6661
6661
|
"dist",
|
|
6662
6662
|
"commands",
|
|
6663
|
-
"
|
|
6663
|
+
"taxonomy",
|
|
6664
6664
|
"list.js"
|
|
6665
6665
|
]
|
|
6666
6666
|
},
|
|
6667
|
-
"
|
|
6667
|
+
"taxonomy:pull": {
|
|
6668
6668
|
"aliases": [],
|
|
6669
6669
|
"args": {
|
|
6670
6670
|
"path": {
|
|
6671
|
-
"description": "Path to
|
|
6671
|
+
"description": "Path to the taxonomies directory (overrides project config)",
|
|
6672
6672
|
"name": "path"
|
|
6673
6673
|
}
|
|
6674
6674
|
},
|
|
6675
|
-
"description": "
|
|
6675
|
+
"description": "Pull the taxonomies Loopress manages on WordPress into taxonomies/<slug>.json files, never their terms. Taxonomies registered by a theme or another plugin are never pulled, see `lps taxonomy list`.",
|
|
6676
6676
|
"examples": [
|
|
6677
|
-
"$ lps
|
|
6678
|
-
"$ lps snippet publish ./snippets"
|
|
6677
|
+
"$ lps taxonomy pull"
|
|
6679
6678
|
],
|
|
6680
|
-
"flags": {
|
|
6679
|
+
"flags": {
|
|
6680
|
+
"json": {
|
|
6681
|
+
"description": "Format output as json.",
|
|
6682
|
+
"helpGroup": "GLOBAL",
|
|
6683
|
+
"name": "json",
|
|
6684
|
+
"allowNo": false,
|
|
6685
|
+
"type": "boolean"
|
|
6686
|
+
},
|
|
6687
|
+
"env": {
|
|
6688
|
+
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
6689
|
+
"name": "env",
|
|
6690
|
+
"hasDynamicHelp": false,
|
|
6691
|
+
"multiple": false,
|
|
6692
|
+
"type": "option"
|
|
6693
|
+
},
|
|
6694
|
+
"dry-run": {
|
|
6695
|
+
"char": "d",
|
|
6696
|
+
"description": "Show what would change without making changes",
|
|
6697
|
+
"name": "dry-run",
|
|
6698
|
+
"allowNo": false,
|
|
6699
|
+
"type": "boolean"
|
|
6700
|
+
},
|
|
6701
|
+
"yes": {
|
|
6702
|
+
"char": "y",
|
|
6703
|
+
"description": "Answer yes to confirmation prompts",
|
|
6704
|
+
"name": "yes",
|
|
6705
|
+
"allowNo": false,
|
|
6706
|
+
"type": "boolean"
|
|
6707
|
+
}
|
|
6708
|
+
},
|
|
6681
6709
|
"hasDynamicHelp": false,
|
|
6682
6710
|
"hiddenAliases": [],
|
|
6683
|
-
"id": "
|
|
6711
|
+
"id": "taxonomy:pull",
|
|
6684
6712
|
"pluginAlias": "@loopress/cli",
|
|
6685
6713
|
"pluginName": "@loopress/cli",
|
|
6686
6714
|
"pluginType": "core",
|
|
6687
6715
|
"strict": true,
|
|
6688
|
-
"enableJsonFlag":
|
|
6716
|
+
"enableJsonFlag": true,
|
|
6717
|
+
"dryRunFlag": {
|
|
6718
|
+
"dry-run": {
|
|
6719
|
+
"char": "d",
|
|
6720
|
+
"description": "Show what would change without making changes",
|
|
6721
|
+
"allowNo": false,
|
|
6722
|
+
"type": "boolean"
|
|
6723
|
+
}
|
|
6724
|
+
},
|
|
6725
|
+
"yesFlag": {
|
|
6726
|
+
"yes": {
|
|
6727
|
+
"char": "y",
|
|
6728
|
+
"description": "Answer yes to confirmation prompts",
|
|
6729
|
+
"allowNo": false,
|
|
6730
|
+
"type": "boolean"
|
|
6731
|
+
}
|
|
6732
|
+
},
|
|
6689
6733
|
"isESM": true,
|
|
6690
6734
|
"relativePath": [
|
|
6691
6735
|
"dist",
|
|
6692
6736
|
"commands",
|
|
6693
|
-
"
|
|
6694
|
-
"
|
|
6737
|
+
"taxonomy",
|
|
6738
|
+
"pull.js"
|
|
6695
6739
|
]
|
|
6696
6740
|
},
|
|
6697
|
-
"
|
|
6741
|
+
"taxonomy:push": {
|
|
6698
6742
|
"aliases": [],
|
|
6699
6743
|
"args": {
|
|
6700
6744
|
"path": {
|
|
6701
|
-
"description": "Path to
|
|
6745
|
+
"description": "Path to the taxonomies directory (overrides project config)",
|
|
6702
6746
|
"name": "path"
|
|
6703
6747
|
}
|
|
6704
6748
|
},
|
|
6705
|
-
"description": "
|
|
6749
|
+
"description": "Push local taxonomies (taxonomies/<slug>.json, register_taxonomy() arguments plus \"object_type\") to WordPress. Create or update only, never deletes a taxonomy (use `lps taxonomy rm`), never touches its terms.",
|
|
6706
6750
|
"examples": [
|
|
6707
|
-
"$ lps
|
|
6708
|
-
"$ lps snippet pull ./snippets"
|
|
6751
|
+
"$ lps taxonomy push"
|
|
6709
6752
|
],
|
|
6710
6753
|
"flags": {
|
|
6711
6754
|
"json": {
|
|
@@ -6722,6 +6765,18 @@
|
|
|
6722
6765
|
"multiple": false,
|
|
6723
6766
|
"type": "option"
|
|
6724
6767
|
},
|
|
6768
|
+
"overwrite": {
|
|
6769
|
+
"description": "Push even over changes made on the site outside Loopress since your last push. Pages: also take over a same-slug page Loopress did not create",
|
|
6770
|
+
"name": "overwrite",
|
|
6771
|
+
"allowNo": false,
|
|
6772
|
+
"type": "boolean"
|
|
6773
|
+
},
|
|
6774
|
+
"production-confirmed": {
|
|
6775
|
+
"hidden": true,
|
|
6776
|
+
"name": "production-confirmed",
|
|
6777
|
+
"allowNo": false,
|
|
6778
|
+
"type": "boolean"
|
|
6779
|
+
},
|
|
6725
6780
|
"dry-run": {
|
|
6726
6781
|
"char": "d",
|
|
6727
6782
|
"description": "Show what would change without making changes",
|
|
@@ -6739,7 +6794,7 @@
|
|
|
6739
6794
|
},
|
|
6740
6795
|
"hasDynamicHelp": false,
|
|
6741
6796
|
"hiddenAliases": [],
|
|
6742
|
-
"id": "
|
|
6797
|
+
"id": "taxonomy:push",
|
|
6743
6798
|
"pluginAlias": "@loopress/cli",
|
|
6744
6799
|
"pluginName": "@loopress/cli",
|
|
6745
6800
|
"pluginType": "core",
|
|
@@ -6765,22 +6820,25 @@
|
|
|
6765
6820
|
"relativePath": [
|
|
6766
6821
|
"dist",
|
|
6767
6822
|
"commands",
|
|
6768
|
-
"
|
|
6769
|
-
"
|
|
6823
|
+
"taxonomy",
|
|
6824
|
+
"push.js"
|
|
6770
6825
|
]
|
|
6771
6826
|
},
|
|
6772
|
-
"
|
|
6773
|
-
"aliases": [
|
|
6827
|
+
"taxonomy:rm": {
|
|
6828
|
+
"aliases": [
|
|
6829
|
+
"taxonomy:remove"
|
|
6830
|
+
],
|
|
6774
6831
|
"args": {
|
|
6775
|
-
"
|
|
6776
|
-
"description": "
|
|
6777
|
-
"name": "
|
|
6832
|
+
"slug": {
|
|
6833
|
+
"description": "The taxonomy slug, its taxonomies/ file name without .json",
|
|
6834
|
+
"name": "slug",
|
|
6835
|
+
"required": true
|
|
6778
6836
|
}
|
|
6779
6837
|
},
|
|
6780
|
-
"description": "
|
|
6838
|
+
"description": "Stop registering a Loopress taxonomy on WordPress. Its terms are kept in the database, hidden until the taxonomy is pushed again.",
|
|
6781
6839
|
"examples": [
|
|
6782
|
-
"$ lps
|
|
6783
|
-
"$ lps
|
|
6840
|
+
"$ lps taxonomy rm <slug>",
|
|
6841
|
+
"$ lps taxonomy remove <slug> --yes"
|
|
6784
6842
|
],
|
|
6785
6843
|
"flags": {
|
|
6786
6844
|
"json": {
|
|
@@ -6797,18 +6855,6 @@
|
|
|
6797
6855
|
"multiple": false,
|
|
6798
6856
|
"type": "option"
|
|
6799
6857
|
},
|
|
6800
|
-
"overwrite": {
|
|
6801
|
-
"description": "Push even over changes made on the site outside Loopress since your last push. Pages: also take over a same-slug page Loopress did not create",
|
|
6802
|
-
"name": "overwrite",
|
|
6803
|
-
"allowNo": false,
|
|
6804
|
-
"type": "boolean"
|
|
6805
|
-
},
|
|
6806
|
-
"production-confirmed": {
|
|
6807
|
-
"hidden": true,
|
|
6808
|
-
"name": "production-confirmed",
|
|
6809
|
-
"allowNo": false,
|
|
6810
|
-
"type": "boolean"
|
|
6811
|
-
},
|
|
6812
6858
|
"dry-run": {
|
|
6813
6859
|
"char": "d",
|
|
6814
6860
|
"description": "Show what would change without making changes",
|
|
@@ -6826,7 +6872,7 @@
|
|
|
6826
6872
|
},
|
|
6827
6873
|
"hasDynamicHelp": false,
|
|
6828
6874
|
"hiddenAliases": [],
|
|
6829
|
-
"id": "
|
|
6875
|
+
"id": "taxonomy:rm",
|
|
6830
6876
|
"pluginAlias": "@loopress/cli",
|
|
6831
6877
|
"pluginName": "@loopress/cli",
|
|
6832
6878
|
"pluginType": "core",
|
|
@@ -6852,24 +6898,24 @@
|
|
|
6852
6898
|
"relativePath": [
|
|
6853
6899
|
"dist",
|
|
6854
6900
|
"commands",
|
|
6855
|
-
"
|
|
6856
|
-
"
|
|
6901
|
+
"taxonomy",
|
|
6902
|
+
"rm.js"
|
|
6857
6903
|
]
|
|
6858
6904
|
},
|
|
6859
|
-
"
|
|
6905
|
+
"taxonomy:rollback": {
|
|
6860
6906
|
"aliases": [],
|
|
6861
6907
|
"args": {
|
|
6862
6908
|
"path": {
|
|
6863
|
-
"description": "Path to
|
|
6909
|
+
"description": "Path to taxonomies directory (overrides project config)",
|
|
6864
6910
|
"name": "path"
|
|
6865
6911
|
}
|
|
6866
6912
|
},
|
|
6867
|
-
"description": "Restore
|
|
6913
|
+
"description": "Restore taxonomies to a snapshot taken automatically before an earlier `lps taxonomy push`",
|
|
6868
6914
|
"examples": [
|
|
6869
|
-
"$ lps
|
|
6870
|
-
"$ lps
|
|
6871
|
-
"$ lps
|
|
6872
|
-
"$ lps
|
|
6915
|
+
"$ lps taxonomy rollback",
|
|
6916
|
+
"$ lps taxonomy rollback --list",
|
|
6917
|
+
"$ lps taxonomy rollback --to 1732000000000",
|
|
6918
|
+
"$ lps taxonomy rollback --dry-run"
|
|
6873
6919
|
],
|
|
6874
6920
|
"flags": {
|
|
6875
6921
|
"json": {
|
|
@@ -6916,7 +6962,7 @@
|
|
|
6916
6962
|
},
|
|
6917
6963
|
"hasDynamicHelp": false,
|
|
6918
6964
|
"hiddenAliases": [],
|
|
6919
|
-
"id": "
|
|
6965
|
+
"id": "taxonomy:rollback",
|
|
6920
6966
|
"pluginAlias": "@loopress/cli",
|
|
6921
6967
|
"pluginName": "@loopress/cli",
|
|
6922
6968
|
"pluginType": "core",
|
|
@@ -6942,23 +6988,23 @@
|
|
|
6942
6988
|
"relativePath": [
|
|
6943
6989
|
"dist",
|
|
6944
6990
|
"commands",
|
|
6945
|
-
"
|
|
6991
|
+
"taxonomy",
|
|
6946
6992
|
"rollback.js"
|
|
6947
6993
|
]
|
|
6948
6994
|
},
|
|
6949
|
-
"
|
|
6995
|
+
"snippet:diff": {
|
|
6950
6996
|
"aliases": [],
|
|
6951
6997
|
"args": {
|
|
6952
6998
|
"path": {
|
|
6953
|
-
"description": "Path to
|
|
6999
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
6954
7000
|
"name": "path"
|
|
6955
7001
|
}
|
|
6956
7002
|
},
|
|
6957
|
-
"description": "Show what differs in
|
|
7003
|
+
"description": "Show what differs in snippets between your local files and a WordPress environment, or between two environments",
|
|
6958
7004
|
"examples": [
|
|
6959
|
-
"$ lps
|
|
6960
|
-
"$ lps
|
|
6961
|
-
"$ lps
|
|
7005
|
+
"$ lps snippet diff",
|
|
7006
|
+
"$ lps snippet diff --env staging",
|
|
7007
|
+
"$ lps snippet diff --env staging --against production"
|
|
6962
7008
|
],
|
|
6963
7009
|
"flags": {
|
|
6964
7010
|
"json": {
|
|
@@ -6985,7 +7031,7 @@
|
|
|
6985
7031
|
},
|
|
6986
7032
|
"hasDynamicHelp": false,
|
|
6987
7033
|
"hiddenAliases": [],
|
|
6988
|
-
"id": "
|
|
7034
|
+
"id": "snippet:diff",
|
|
6989
7035
|
"pluginAlias": "@loopress/cli",
|
|
6990
7036
|
"pluginName": "@loopress/cli",
|
|
6991
7037
|
"pluginType": "core",
|
|
@@ -7019,16 +7065,16 @@
|
|
|
7019
7065
|
"relativePath": [
|
|
7020
7066
|
"dist",
|
|
7021
7067
|
"commands",
|
|
7022
|
-
"
|
|
7068
|
+
"snippet",
|
|
7023
7069
|
"diff.js"
|
|
7024
7070
|
]
|
|
7025
7071
|
},
|
|
7026
|
-
"
|
|
7072
|
+
"snippet:list": {
|
|
7027
7073
|
"aliases": [],
|
|
7028
7074
|
"args": {},
|
|
7029
|
-
"description": "List
|
|
7075
|
+
"description": "List snippets currently on WordPress",
|
|
7030
7076
|
"examples": [
|
|
7031
|
-
"$ lps
|
|
7077
|
+
"$ lps snippet list"
|
|
7032
7078
|
],
|
|
7033
7079
|
"flags": {
|
|
7034
7080
|
"json": {
|
|
@@ -7048,7 +7094,7 @@
|
|
|
7048
7094
|
},
|
|
7049
7095
|
"hasDynamicHelp": false,
|
|
7050
7096
|
"hiddenAliases": [],
|
|
7051
|
-
"id": "
|
|
7097
|
+
"id": "snippet:list",
|
|
7052
7098
|
"pluginAlias": "@loopress/cli",
|
|
7053
7099
|
"pluginName": "@loopress/cli",
|
|
7054
7100
|
"pluginType": "core",
|
|
@@ -7074,95 +7120,52 @@
|
|
|
7074
7120
|
"relativePath": [
|
|
7075
7121
|
"dist",
|
|
7076
7122
|
"commands",
|
|
7077
|
-
"
|
|
7123
|
+
"snippet",
|
|
7078
7124
|
"list.js"
|
|
7079
7125
|
]
|
|
7080
7126
|
},
|
|
7081
|
-
"
|
|
7127
|
+
"snippet:publish": {
|
|
7082
7128
|
"aliases": [],
|
|
7083
7129
|
"args": {
|
|
7084
7130
|
"path": {
|
|
7085
|
-
"description": "Path to
|
|
7131
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
7086
7132
|
"name": "path"
|
|
7087
7133
|
}
|
|
7088
7134
|
},
|
|
7089
|
-
"description": "
|
|
7135
|
+
"description": "Publish snippets to your Loopress account so they can be deployed to other projects. Does not touch any WordPress site.",
|
|
7090
7136
|
"examples": [
|
|
7091
|
-
"$ lps
|
|
7137
|
+
"$ lps snippet publish",
|
|
7138
|
+
"$ lps snippet publish ./snippets"
|
|
7092
7139
|
],
|
|
7093
|
-
"flags": {
|
|
7094
|
-
"json": {
|
|
7095
|
-
"description": "Format output as json.",
|
|
7096
|
-
"helpGroup": "GLOBAL",
|
|
7097
|
-
"name": "json",
|
|
7098
|
-
"allowNo": false,
|
|
7099
|
-
"type": "boolean"
|
|
7100
|
-
},
|
|
7101
|
-
"env": {
|
|
7102
|
-
"description": "Target environment by name (default: \"local\", or the project's only environment)",
|
|
7103
|
-
"name": "env",
|
|
7104
|
-
"hasDynamicHelp": false,
|
|
7105
|
-
"multiple": false,
|
|
7106
|
-
"type": "option"
|
|
7107
|
-
},
|
|
7108
|
-
"dry-run": {
|
|
7109
|
-
"char": "d",
|
|
7110
|
-
"description": "Show what would change without making changes",
|
|
7111
|
-
"name": "dry-run",
|
|
7112
|
-
"allowNo": false,
|
|
7113
|
-
"type": "boolean"
|
|
7114
|
-
},
|
|
7115
|
-
"yes": {
|
|
7116
|
-
"char": "y",
|
|
7117
|
-
"description": "Answer yes to confirmation prompts",
|
|
7118
|
-
"name": "yes",
|
|
7119
|
-
"allowNo": false,
|
|
7120
|
-
"type": "boolean"
|
|
7121
|
-
}
|
|
7122
|
-
},
|
|
7140
|
+
"flags": {},
|
|
7123
7141
|
"hasDynamicHelp": false,
|
|
7124
7142
|
"hiddenAliases": [],
|
|
7125
|
-
"id": "
|
|
7143
|
+
"id": "snippet:publish",
|
|
7126
7144
|
"pluginAlias": "@loopress/cli",
|
|
7127
7145
|
"pluginName": "@loopress/cli",
|
|
7128
7146
|
"pluginType": "core",
|
|
7129
7147
|
"strict": true,
|
|
7130
|
-
"enableJsonFlag":
|
|
7131
|
-
"dryRunFlag": {
|
|
7132
|
-
"dry-run": {
|
|
7133
|
-
"char": "d",
|
|
7134
|
-
"description": "Show what would change without making changes",
|
|
7135
|
-
"allowNo": false,
|
|
7136
|
-
"type": "boolean"
|
|
7137
|
-
}
|
|
7138
|
-
},
|
|
7139
|
-
"yesFlag": {
|
|
7140
|
-
"yes": {
|
|
7141
|
-
"char": "y",
|
|
7142
|
-
"description": "Answer yes to confirmation prompts",
|
|
7143
|
-
"allowNo": false,
|
|
7144
|
-
"type": "boolean"
|
|
7145
|
-
}
|
|
7146
|
-
},
|
|
7148
|
+
"enableJsonFlag": false,
|
|
7147
7149
|
"isESM": true,
|
|
7148
7150
|
"relativePath": [
|
|
7149
7151
|
"dist",
|
|
7150
7152
|
"commands",
|
|
7151
|
-
"
|
|
7152
|
-
"
|
|
7153
|
+
"snippet",
|
|
7154
|
+
"publish.js"
|
|
7153
7155
|
]
|
|
7154
7156
|
},
|
|
7155
|
-
"
|
|
7157
|
+
"snippet:pull": {
|
|
7156
7158
|
"aliases": [],
|
|
7157
7159
|
"args": {
|
|
7158
7160
|
"path": {
|
|
7159
|
-
"description": "Path to
|
|
7161
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
7160
7162
|
"name": "path"
|
|
7161
7163
|
}
|
|
7162
7164
|
},
|
|
7163
|
-
"description": "
|
|
7165
|
+
"description": "Pull snippets from WordPress into local files",
|
|
7164
7166
|
"examples": [
|
|
7165
|
-
"$ lps
|
|
7167
|
+
"$ lps snippet pull",
|
|
7168
|
+
"$ lps snippet pull ./snippets"
|
|
7166
7169
|
],
|
|
7167
7170
|
"flags": {
|
|
7168
7171
|
"json": {
|
|
@@ -7179,18 +7182,6 @@
|
|
|
7179
7182
|
"multiple": false,
|
|
7180
7183
|
"type": "option"
|
|
7181
7184
|
},
|
|
7182
|
-
"overwrite": {
|
|
7183
|
-
"description": "Push even over changes made on the site outside Loopress since your last push. Pages: also take over a same-slug page Loopress did not create",
|
|
7184
|
-
"name": "overwrite",
|
|
7185
|
-
"allowNo": false,
|
|
7186
|
-
"type": "boolean"
|
|
7187
|
-
},
|
|
7188
|
-
"production-confirmed": {
|
|
7189
|
-
"hidden": true,
|
|
7190
|
-
"name": "production-confirmed",
|
|
7191
|
-
"allowNo": false,
|
|
7192
|
-
"type": "boolean"
|
|
7193
|
-
},
|
|
7194
7185
|
"dry-run": {
|
|
7195
7186
|
"char": "d",
|
|
7196
7187
|
"description": "Show what would change without making changes",
|
|
@@ -7208,7 +7199,7 @@
|
|
|
7208
7199
|
},
|
|
7209
7200
|
"hasDynamicHelp": false,
|
|
7210
7201
|
"hiddenAliases": [],
|
|
7211
|
-
"id": "
|
|
7202
|
+
"id": "snippet:pull",
|
|
7212
7203
|
"pluginAlias": "@loopress/cli",
|
|
7213
7204
|
"pluginName": "@loopress/cli",
|
|
7214
7205
|
"pluginType": "core",
|
|
@@ -7234,25 +7225,22 @@
|
|
|
7234
7225
|
"relativePath": [
|
|
7235
7226
|
"dist",
|
|
7236
7227
|
"commands",
|
|
7237
|
-
"
|
|
7238
|
-
"
|
|
7228
|
+
"snippet",
|
|
7229
|
+
"pull.js"
|
|
7239
7230
|
]
|
|
7240
7231
|
},
|
|
7241
|
-
"
|
|
7242
|
-
"aliases": [
|
|
7243
|
-
"taxonomy:remove"
|
|
7244
|
-
],
|
|
7232
|
+
"snippet:push": {
|
|
7233
|
+
"aliases": [],
|
|
7245
7234
|
"args": {
|
|
7246
|
-
"
|
|
7247
|
-
"description": "
|
|
7248
|
-
"name": "
|
|
7249
|
-
"required": true
|
|
7235
|
+
"path": {
|
|
7236
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
7237
|
+
"name": "path"
|
|
7250
7238
|
}
|
|
7251
7239
|
},
|
|
7252
|
-
"description": "
|
|
7240
|
+
"description": "Push local snippet files to WordPress. Local snippet files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
7253
7241
|
"examples": [
|
|
7254
|
-
"$ lps
|
|
7255
|
-
"$ lps
|
|
7242
|
+
"$ lps snippet push",
|
|
7243
|
+
"$ lps snippet push ./snippets"
|
|
7256
7244
|
],
|
|
7257
7245
|
"flags": {
|
|
7258
7246
|
"json": {
|
|
@@ -7269,6 +7257,18 @@
|
|
|
7269
7257
|
"multiple": false,
|
|
7270
7258
|
"type": "option"
|
|
7271
7259
|
},
|
|
7260
|
+
"overwrite": {
|
|
7261
|
+
"description": "Push even over changes made on the site outside Loopress since your last push. Pages: also take over a same-slug page Loopress did not create",
|
|
7262
|
+
"name": "overwrite",
|
|
7263
|
+
"allowNo": false,
|
|
7264
|
+
"type": "boolean"
|
|
7265
|
+
},
|
|
7266
|
+
"production-confirmed": {
|
|
7267
|
+
"hidden": true,
|
|
7268
|
+
"name": "production-confirmed",
|
|
7269
|
+
"allowNo": false,
|
|
7270
|
+
"type": "boolean"
|
|
7271
|
+
},
|
|
7272
7272
|
"dry-run": {
|
|
7273
7273
|
"char": "d",
|
|
7274
7274
|
"description": "Show what would change without making changes",
|
|
@@ -7286,7 +7286,7 @@
|
|
|
7286
7286
|
},
|
|
7287
7287
|
"hasDynamicHelp": false,
|
|
7288
7288
|
"hiddenAliases": [],
|
|
7289
|
-
"id": "
|
|
7289
|
+
"id": "snippet:push",
|
|
7290
7290
|
"pluginAlias": "@loopress/cli",
|
|
7291
7291
|
"pluginName": "@loopress/cli",
|
|
7292
7292
|
"pluginType": "core",
|
|
@@ -7312,24 +7312,24 @@
|
|
|
7312
7312
|
"relativePath": [
|
|
7313
7313
|
"dist",
|
|
7314
7314
|
"commands",
|
|
7315
|
-
"
|
|
7316
|
-
"
|
|
7315
|
+
"snippet",
|
|
7316
|
+
"push.js"
|
|
7317
7317
|
]
|
|
7318
7318
|
},
|
|
7319
|
-
"
|
|
7319
|
+
"snippet:rollback": {
|
|
7320
7320
|
"aliases": [],
|
|
7321
7321
|
"args": {
|
|
7322
7322
|
"path": {
|
|
7323
|
-
"description": "Path to
|
|
7323
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
7324
7324
|
"name": "path"
|
|
7325
7325
|
}
|
|
7326
7326
|
},
|
|
7327
|
-
"description": "Restore
|
|
7327
|
+
"description": "Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`",
|
|
7328
7328
|
"examples": [
|
|
7329
|
-
"$ lps
|
|
7330
|
-
"$ lps
|
|
7331
|
-
"$ lps
|
|
7332
|
-
"$ lps
|
|
7329
|
+
"$ lps snippet rollback",
|
|
7330
|
+
"$ lps snippet rollback --list",
|
|
7331
|
+
"$ lps snippet rollback --to 1732000000000",
|
|
7332
|
+
"$ lps snippet rollback --dry-run"
|
|
7333
7333
|
],
|
|
7334
7334
|
"flags": {
|
|
7335
7335
|
"json": {
|
|
@@ -7376,7 +7376,7 @@
|
|
|
7376
7376
|
},
|
|
7377
7377
|
"hasDynamicHelp": false,
|
|
7378
7378
|
"hiddenAliases": [],
|
|
7379
|
-
"id": "
|
|
7379
|
+
"id": "snippet:rollback",
|
|
7380
7380
|
"pluginAlias": "@loopress/cli",
|
|
7381
7381
|
"pluginName": "@loopress/cli",
|
|
7382
7382
|
"pluginType": "core",
|
|
@@ -7402,7 +7402,7 @@
|
|
|
7402
7402
|
"relativePath": [
|
|
7403
7403
|
"dist",
|
|
7404
7404
|
"commands",
|
|
7405
|
-
"
|
|
7405
|
+
"snippet",
|
|
7406
7406
|
"rollback.js"
|
|
7407
7407
|
]
|
|
7408
7408
|
},
|
|
@@ -8415,5 +8415,5 @@
|
|
|
8415
8415
|
]
|
|
8416
8416
|
}
|
|
8417
8417
|
},
|
|
8418
|
-
"version": "0.32.
|
|
8418
|
+
"version": "0.32.2"
|
|
8419
8419
|
}
|